VSCode add to setting (#1124)
* Fix start.sh debug command Signed-off-by: Tim Roberts <troberts@bigfoot.com> * Added to VSCode settings Signed-off-by: Tim Roberts <timmarkroberts@gmail.com> * Added settings.json and references to it Signed-off-by: Tim Roberts <timmarkroberts@gmail.com> * Fix typos Signed-off-by: Tim Roberts <timmarkroberts@gmail.com>pull/1135/head
parent
6c3c77ce12
commit
60286f2616
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"editor.formatOnType": true,
|
||||
"java.debug.settings.console": "integratedTerminal",
|
||||
"java.format.enabled": true,
|
||||
"java.format.comments.enabled": true,
|
||||
"java.format.onType.enabled": true,
|
||||
"java.saveActions.organizeImports": true,
|
||||
"java.configuration.checkProjectSettingsExclusions": false,
|
||||
"java.codeGeneration.generateComments": true,
|
||||
"java.format.settings.url": "https://raw.githubusercontent.com/openhab/static-code-analysis/master/codestyle/src/main/resources/openhab_codestyle.xml",
|
||||
"java.format.settings.profile": "openHAB",
|
||||
"[java]": {
|
||||
"editor.defaultFormatter": "redhat.java",
|
||||
"editor.detectIndentation": false,
|
||||
"editor.tabSize": 4
|
||||
},
|
||||
"[xml]": {
|
||||
"editor.defaultFormatter": "redhat.vscode-xml"
|
||||
}
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.7 KiB |
|
@ -21,6 +21,8 @@ The following steps will only need to be done once to setup both VSCode and your
|
|||
|
||||
Either globally define the formatting options via ```Files->Preferences->Settings->Extendions->Java configuration``` (or in the global ```settings.json```). You can also define them local to a specific bundle by putting those lines in the ```.vscode/settings.json``` file in the bundle (similar to ```tasks.json```/```launch.json``` below).
|
||||
|
||||
Download [settings.json](https://raw.githubusercontent.com/openhab/openhab-docs/master/developers/ide/examples/vscode/settings.json) for the recommended settings (or simply wish to copy the URLs in the above image).
|
||||
|
||||
## Steps for each Bundle
|
||||
|
||||
The following steps will show you how to setup a specific bundle for development with VSCode. These steps will show how to setup the Russound bundle but are generic to any bundle in the system.
|
||||
|
|
Loading…
Reference in New Issue