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
VS Code uses js-beautify internally, bit it lacks the ability to modify the style you wish to use. This extension enables running [js-beautify](http://jsbeautifier.org/) in VS Code, _AND_ honouring any `.jsbeautifyrc` file in the open file's path tree to load *your* code styling. Run with **⌘⇧P**`Beautify`.
5
+
VS Code uses js-beautify internally, bit it lacks the ability to modify the style you wish to use. This extension enables running [js-beautify](http://jsbeautifier.org/) in VS Code, _AND_ honouring any `.jsbeautifyrc` file in the open file's path tree to load *your* code styling. Run with **F1**`Beautify`.
6
6
7
-
This package now includes hints when editing your `.jsbeautifyrc`. Only the first file found will be used. If the format is bad, the default js-beautify settings will be used.
7
+
This package includes hints when editing your `.jsbeautifyrc`. Only the first file found will be used. If the format is bad, the default js-beautify settings will be used, but a warning will be issued to let you know. Comments in your settings file are acceptable (they're removed before the file is parsed). The embedded schema for `.jsbeautifyrc` has also been published at [JSON Schema Store](http://schemastore.org) which allows users of VSCode 0.10.3 to add it manually to their user or workspace settings:
8
8
9
-
Also runs http and css beautify from the same package, as determined by the file extension. If the file is unsaved, or the type is undetermined, you'll be prompted for which beautifier to use.
9
+
```json
10
+
"json.schemas": [
11
+
{
12
+
"fileMatch": ["**/.jsbeautifyrc"],
13
+
"url": "http://json.schemastore.org/jsbeautifyrc"
14
+
}
15
+
]
16
+
```
17
+
18
+
Also runs http and css beautify from the same package, as determined by the file extension. The schema indicates which beautifier each of the settings pertains to.
19
+
20
+
If the file is unsaved, or the type is undetermined, you'll be prompted for which beautifier to use.
10
21
11
22
Extra (permanent) file extension may be added under user or workspace settings.
12
23
24
+
13
25
Embedded version of js-beautify is v1.5.10.
14
26
15
27
## Changes:
28
+
### 0.0.5: 24 Dec 2015
29
+
* Schema published at http://json.schemastore.org/jsbeautifyrc.
30
+
* Added README details for schema install for users of VSCode < v0.10.5
31
+
* Added comments remover before JSON parse. Fixes [Issue #2: .jsbeautifyrc file not being used](https://github.com/HookyQR/VSCodeBeautify/issues/2)
32
+
16
33
### 0.0.4: 19 Dec 2015
17
34
* Changed default (unknown) processing to ask you what you want to use.
18
35
* Fixed [Issue #1: No handler found for the command: 'HookyQR.beautify'](https://github.com/HookyQR/VSCodeBeautify/issues/1)
0 commit comments