Difference between revisions of "Visual Studio Code"
(Created page with "You can also run VS Code from the terminal by typing 'code' after adding it to the path: * Launch VS Code. * Open the Command Palette ('''Ctrl+Shift+P''') and type '''shell co...") |
(VS Code Formatting) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
* Launch VS Code. | * Launch VS Code. | ||
* Open the Command Palette ('''Ctrl+Shift+P''') and type '''shell command''' to find the Shell Command: Install 'code' command in PATH command. | * Open the Command Palette ('''Ctrl+Shift+P''') and type '''shell command''' to find the Shell Command: Install 'code' command in PATH command. | ||
| + | |||
| + | https://code.visualstudio.com/docs/setup/mac | ||
| + | |||
| + | VS Code Formating problem: | ||
| + | https://stackoverflow.com/questions/36251820/visual-studio-code-format-is-not-using-indent-settings | ||
| + | https://code.visualstudio.com/docs/getstarted/settings | ||
| + | |||
| + | sample for MacOs: | ||
| + | <syntaxhighlight lang="javascript"> | ||
| + | { | ||
| + | "window.zoomLevel": -1, | ||
| + | "typescript.updateImportsOnFileMove.enabled": "always", | ||
| + | "fileHeaderComment.parameter": { | ||
| + | "*": [ | ||
| + | "/*", | ||
| + | "* Copyright © 2019 Oasis Software Technology Ltd. All rights reserved.", | ||
| + | "*/" | ||
| + | ] | ||
| + | }, | ||
| + | "breadcrumbs.enabled": true, | ||
| + | "window.openFilesInNewWindow": "on", | ||
| + | "workbench.editor.enablePreview": false, | ||
| + | "workbench.editor.enablePreviewFromQuickOpen": false, | ||
| + | "[typescript]": { | ||
| + | "editor.formatOnSave": true, | ||
| + | "editor.formatOnPaste": true, | ||
| + | "editor.tabSize": 2 | ||
| + | }, | ||
| + | "[markdown]": { | ||
| + | "editor.formatOnSave": true, | ||
| + | "editor.wordWrap": "on", | ||
| + | "editor.renderWhitespace": "all", | ||
| + | "editor.acceptSuggestionOnEnter": "off" | ||
| + | }, | ||
| + | "javascript.format.insertSpaceAfterConstructor": true, | ||
| + | "typescript.format.insertSpaceAfterConstructor": true, | ||
| + | "editor.tabSize": 2 | ||
| + | } | ||
| + | |||
| + | <syntaxhighlight> | ||
Latest revision as of 04:32, 29 May 2019
You can also run VS Code from the terminal by typing 'code' after adding it to the path:
- Launch VS Code.
- Open the Command Palette (Ctrl+Shift+P) and type shell command to find the Shell Command: Install 'code' command in PATH command.
https://code.visualstudio.com/docs/setup/mac
VS Code Formating problem: https://stackoverflow.com/questions/36251820/visual-studio-code-format-is-not-using-indent-settings https://code.visualstudio.com/docs/getstarted/settings
sample for MacOs: <syntaxhighlight lang="javascript"> {
"window.zoomLevel": -1,
"typescript.updateImportsOnFileMove.enabled": "always",
"fileHeaderComment.parameter": {
"*": [
"/*",
"* Copyright © 2019 Oasis Software Technology Ltd. All rights reserved.",
"*/"
]
},
"breadcrumbs.enabled": true,
"window.openFilesInNewWindow": "on",
"workbench.editor.enablePreview": false,
"workbench.editor.enablePreviewFromQuickOpen": false,
"[typescript]": {
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.tabSize": 2
},
"[markdown]": {
"editor.formatOnSave": true,
"editor.wordWrap": "on",
"editor.renderWhitespace": "all",
"editor.acceptSuggestionOnEnter": "off"
},
"javascript.format.insertSpaceAfterConstructor": true,
"typescript.format.insertSpaceAfterConstructor": true,
"editor.tabSize": 2
}
<syntaxhighlight>