Difference between revisions of "Visual Studio Code"
(VS Code Formatting) |
|||
Line 4: | Line 4: | ||
https://code.visualstudio.com/docs/setup/mac | 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 05: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>