How do you format code on save in VS Code
As of September 2016 (VSCode 1.6), this is now officially supported. Add the following to your settings.json file: “editor.formatOnSave”: true
As of September 2016 (VSCode 1.6), this is now officially supported. Add the following to your settings.json file: “editor.formatOnSave”: true
Go to File > Preference > Settings and choose: Workbench › Tree: Indent Controls tree indentation in pixels. or (in your settings.json enter this directly) “workbench.tree.indent”: 10 and choose a high enough number for you. Also see my answer at Visual Studio code sidebar Vertical guideline (customize sidebar) where with v1.36 you can add colorized … Read more
With the current version of Visual Studio Code as of this writing (1.22.1), you can find your settings in ~/.config/Code/User on Linux (in my case, an, Ubuntu derivative) %APPDATA%\Code\User (C:\Users\username\AppData\Roaming\Code\User) on Windows ~/Library/Application Support/Code/User/ on Mac OS X (thank you, Christophe De Troyer) The files are settings.json and keybindings.json. Simply copy them to the target … Read more
Ctrl + Shift + N will open a new window, while Ctrl+K then releases the keys, and pressing O would open the current tab in a new window. You can then use menu File → Open Folder to have two instances of Visual Studio Code with different folders in each window. ⌘ + Shift + … Read more
Currently it is not possible to change the font family or size outside the editor. You can however zoom the entire user interface in and out from the View menu. Update for our VS Code 1.0 release: A newly introduced setting window.zoomLevel allows to persist the zoom level for good! It can have both negative … Read more
Use files.exclude: Go to File -> Preferences -> Settings (or on Mac Code -> Preferences -> Settings) Pick the workspace settings tab Add this code to the settings.json file displayed on the right side: // Place your settings in this file to overwrite default and user settings. { “settings”: { “files.exclude”: { “**/.git”: true, // … Read more
Yes, there is the workbench.action.gotoSymbol command. On Windows and Linux it’s set to CTRL+Shift+O by default. If this command isn’t available for the file types you are working with then you should take a look at the VSCode extensions. Not all languages support this feature.
Mac Cmd+Shift+\ Mac with french keyboard : Ctrl+Cmd+Option+Shift+L Windows Ctrl+Shift+\ Windows with spanish keyboard Ctrl+Shift+| Windows with german keyboard Ctrl+Shift+^ Ubuntu Ctrl+Shift+\ Alternatively, you can do: Ctrl+Shift+p And select Preferences: Open Keyboard Shortcuts There you will be able to see all the shortcuts, and create your own. The command in question is called editor.action.jumpToBracket.
As of October 2018 (version 1.29) the button in @mvvijesh’s answer no longer exists. You now have 2 options. Right click the panel’s toolbar (nowhere else on the panel will work) and choose “move panel right/bottom”: Or choose “View: Toggle Panel Position” from the command palette. Source: VSCode update notes: https://code.visualstudio.com/updates/v1_29#_panel-position-button-to-context-menu
The question is about how to make CTRL+SHIFT+U work in Visual Studio Code. Here is how to do it in version 1.57.1 or above. Steps: Open Visual Studio Code. Press CTRL+SHIFT+P. Type open keyboard shortcuts Select Open keyboard shortcuts (json) An editor will appear with keybindings.json file. Place the following JSON in there and save: … Read more