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
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Code Format
2
2
3
-
Format a selection of code using the `code-format:format-code` command.
3
+
Format a selection of code using the `code-format:format-code` command.
4
4
(Also accessible via context menu, or "Edit > Text > Format Code").
5
5
6
6
When no selection is provided, the entire file is formatted.
@@ -12,15 +12,14 @@ Code Format also provides APIs to:
12
12
- format code as you type
13
13
- format code on save (after you press save but before writing to disk).
14
14
15
-
You can enable format-on-save using plain range/file providers from the
16
-
"atom-ide-code-format" section in the `atom-ide-ui` package settings.
15
+
You can enable format-on-save using plain range/file providers from the atom-ide-code-format's settings
17
16
18
17
## Service API
19
18
20
-
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`:
19
+
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`:
21
20
(Only the ones that you want to use; you don't need all of them!)
22
21
23
-
```
22
+
```json
24
23
"providedServices": {
25
24
"code-format.range": {
26
25
"versions": {
@@ -47,12 +46,12 @@ Provide code format [Atom services](http://flight-manual.atom.io/behind-atom/sec
0 commit comments