Add step to set powershell as shell for windows (#1290)
* Add step to set powershell as shell for Windows Encountered problem because with the default Windows shell the tasks.json tasks do not work. Signed-off-by: Arjan Mels <43108771+arjanmels@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Corrected numbering * Apply suggestions from code review Co-authored-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch>pull/1307/head
parent
ab36fb90f4
commit
25e55cb7a4
|
@ -13,9 +13,16 @@ The following steps will only need to be done once to setup both VSCode and your
|
|||
|
||||
1. Install Java Extension Pack for VSCode (https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack)
|
||||
|
||||
2. Clone the addons (https://github.com/openhab/openhab-addons.git or preferably your own fork) to %BASE%\openhab-addons
|
||||
1. Clone the addons (https://github.com/openhab/openhab-addons.git or preferably your own fork) to %BASE%\openhab-addons
|
||||
|
||||
3. If you want to setup openHAB code formatting guidelines, add the following to the VSCode settings:
|
||||
3. On Windows, VSCode should be configured to use powershell instead of the classic command line.
|
||||
If not configured already, add the following to the VSCode settings:
|
||||
|
||||
```"terminal.integrated.automationShell.windows": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"```
|
||||
|
||||
Either globally define the options via 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).
|
||||
|
||||
1. If you want to setup openHAB code formatting guidelines, add the following to the VSCode settings:
|
||||
|
||||

|
||||
|
||||
|
|
Loading…
Reference in New Issue