You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,25 @@
1
1
# Code Format
2
2
3
-
Format a selection of code using the `code-format:format-code` command.
4
-
(Also accessible via context menu, or "Edit > Text > Format Code").
3
+
## Usage
5
4
6
-
When no selection is provided, the entire file is formatted.
5
+
- By default the currently open file is formatted on save.
6
+
7
+
- Format a selection of code using the `code-format:format-code` (`CTRL+SHIFT+C`) command.
8
+
(Also accessible via context menu, or "Edit > Text > Format Code"). When no selection is provided, the entire file is formatted.
9
+
10
+
- For the languages that support on type formatting, the package is able to format as you type in the editor. You should enable this from the settings of this package (disabled by default).
- format code on save (after you press save but before writing to disk).
19
+
- format code as you type
14
20
15
21
You can enable format-on-save using plain range/file providers from the atom-ide-code-format's settings
16
22
17
-
## Service API
18
-
19
23
Provide code format [Atom services](http://flight-manual.atom.io/behind-atom/sections/interacting-with-other-packages-via-services/) by adding one or more of these to your `package.json`:
20
24
(Only the ones that you want to use; you don't need all of them!)
0 commit comments