396

In Visual Studio Code version 1.0, you can now select columns by holding down Shift+Alt, then click and drag with the mouse. This can also be done using just the keyboard by holding down Ctrl+Shift+Alt and then using the arrow keys. On latest version of vscode - 1.45.1, you can achieve same by Shift+Alt itself ( verified in May 2020)


94

On macOS: Shift+Option and mouse, or Shift+Option+Cmd and arrow keys


72

I've submitted an answer for this on the main StackOverflow site - pasted below for context I've need to do this myself a few times - especially when installing on another machine. Depending on your platform VS Code looks for your extensions folder (.vscode/extensions) on one of the following paths: Windows: %USERPROFILE%\.vscode\extensions Mac: ~/.vscode/...


49

I was stuck on this for a bit as well. Make the Terminal panel bigger and you'll see the icon to move it back to the bottom.


43

Just in case anyone else is looking for this - just use File > Close Folder. I think this is what the op was looking for? Added by barlop This no longer applies post Jan 2019, as serge's comment indicates, the option mentioned above is no longer there. Mathan's answer is the one to use now.


43

This is a very highly upvoted issue request in Github for Floating Windows. Until they support it, you can try the following workarounds: 1. Duplicate Workspace in New Window [1] The Duplicate Workspace in new Window Command was added in v1.24 (May 2018) to sort of address this. Open up Keyboard Shortcuts Ctrl + K, Ctrl + S Map workbench.action....


37

short answer Ctrl+P is the way for search file names in the current workspace or project. but recently opened files are shown above. the quick search found files recently opened and files that are in the workspace or project but are not ignored ignored files may be ruled by .gitignore if in settings.json "search.useIgnoreFiles" is true. That means ...


36

I found bit hard to press ctrl+`. It also close the terminal when we press ctrl + ' So, I configured mine as following: { "key": "ctrl+j", "command": "workbench.action.focusActiveEditorGroup", "when": "!terminalFocus" }, { "key": "ctrl+k", "command": "workbench.action.terminal.focus", "when": "terminalFocus" } Step to configure: Go to: ...


31

The Microsoft help file indicates that the settings are stored in the folder: Windows - %APPDATA%\Code\User\ For me this translated to: C:\Users\USERNAME\AppData\Roaming\Code\ In this folder I located a Backups folder, this folder contained the raw data for my document. This appears to be grouped by date stored as a UNIX timestamp.


31

Per an answer to this StackOverflow Question: Do a normal Find ( Ctrl + F ) using regular expressions. Press Alt + Enter to select all the Find matches. This will insert multiple cursors at the end of each occurrence. Use the Left Arrow ◄ and Right Arrow ► keys to move the synced cursors within each selection. Edit selections as necessary. Official ...


24

1.Press CTRL+SHIFT+N to create a default new window. 2.Drag the tab into this new window.


23

So as treehead's edit or MarkP's answer showed you can now list all extensions installed so the way to install that list of extensions would be to: code --list-extensions >> vs_code_extensions_list.txt Transfer the newly created file to the machine that you want to install those extensions to. On that machine you would: cat vs_code_extensions_list....


21

Version 1.12 introduced new workbench theming options (they were experimental in 1.11). There is a setting for the color of line numbers: "workbench.colorCustomizations": { "editorLineNumber.foreground": "#999999" } Some themes also define current line number: "workbench.colorCustomizations": { "editorLineNumber.activeForeground": "#555555" } See ...


20

You probably enabled the Tab Moves Focus -mode. Press Ctrl+M to disable the mode. After that your Tab-key indents your code again.


19

The thing is called Minimap. Recommended: To change it from within VS Code... on all systems, the easiest way is to use the menu: View -> Toggle Minimap (as shown on the screenshot below). on all systems, you can also press Shift+Ctrl+P (on Mac, Ctrl is replaced by ⌘) and search for Toggle Minimap within the Command Palette. As with all settings in VS ...


19

as of vscode 1.33.1 the option is a bool "workbench.list.automaticKeyboardNavigation": false


18

The trick is explained in the vscode-markdownlint repo (diff from the primary markdownlint repo): Rules can also be configured using Code's support for user and workspace settings. In Visual Studio Code, open File -> Preferences -> Settings or use CTRL + , Edit the User Settings tab on the right to something like this: "markdownlint.config": { ...


18

You can use Language-specific settings. Add the following block in your user settings. "[latex]": { "editor.wordWrap": "on" }, To do this, open the command pallette (ctrl - shift - p), select Preferences: Configure language specific settings... and select the latex language.


18

Here are the default paths where Visual Studio Code Insider saves files: Installation path: "%LocalAppData%\Programs\Microsoft VS Code Insiders" User settings and preferences: "%UserProfile%\.vscode-insiders" "%AppData%\Code - Insiders" "%AppData%\Visual Studio Code - Insiders" Shortcut folder: "%AppData%\Microsoft\Windows\Start Menu\Programs\Visual ...


17

Try renaming ~/.config/Code/User/settings.json. Or just move/delete the folders ~/.config/Code and ~/.vscode. You may want to backup any code snippets in ~/.config/Code/User/snippets/ See also: Visual Studio Code User and Workspace Settings


13

There's three ways to do that. Option 1 - Use the search function Hit F1 in Visual Studio Code to make the search bar appear Write >PowerShell: Select PS then choose PowerShell: Select PSScriptAnalyzer Rules remove the checkmark on PSAvoidUsingCmdletAliases Click on Confirm Picture: Option 2 - completely disable ScriptAnalysis Click the gear Icon in ...


12

For Linux users they are found at ~/.config/Code/Backups.


12

Refer to this Question/Answers Switch focus between editor and integrated terminal in Visual Studio Code on Stackoverflow, I think @Trav L answer might be closed one. But need to config a little bit more. VS Code v1.26.1 as a base version Open keyboard shortcut editor from menu File->Preferences->Keyboard Shortcuts (Ctrl+K Ctrl+S) Click on the link ...


12

I do not think it is possible to open the integrated terminal (or anything in the panel) in a new window directly. If you do not want to use an external terminal you could: make the terminal its' smallest possible size and maximize it using the "^" button (Image of the ^ button) on demand. You can also set a shortcut for workbench.action....


11

The Settings Sync extension should do the trick, though the UX is so-so. It syncs your settings to a GitHub Gist in JSON format. You’ll have to create a GitHub token. I suggest saving the token code in the token file name, as when you need to download your settings again later, it’s unlikely you’ll have the code handy (at least, that was my case).


11

Here's the location of the VSCode settings: Windows %APPDATA%\Code\User\settings.json macOS $HOME/Library/Application Support/Code/User/settings.json Linux $HOME/.config/Code/User/settings.json It appears to only be storing modified settings, which is really nice (so you don't clobber up or screw with future versions). You may also want /snippets/, in the ...


11

By default, VS Code will open a new Editor with the desired file. If you'd like to instead reveal the already open Editor, set workbench.editor.revealIfOpen to true in your User Settings (CMD+k on OSX). To be concrete, that means adding the following line: "workbench.editor.revealIfOpen": true, https://stackoverflow.com/a/43135102/2970867


11

The command palette name for this action is View: Keep Editor. The default keybinding for this is CtrlK Enter (on macOS, ⌘K Enter). The command name for keybindings.json is workbench.action.keepEditor.


10

Remove software If you installed via Snap: $sudo snap remove vscode If you installed via apt: $sudo apt-get purge code If you installed via Ubuntu Software, open Ubuntu Software, look for the app in the installed category, and click on remove. Remove settings $cd ~ && rm -rf .vscode && rm -rf .config/Code


10

I just published an extension for Visual Studio Code that converts a multi-line selection into a column selection. It mimics TextMate's Toggle Column Selection command and serves as an alternate approach to VSCode's commandoptionshift + arrow keys that I find more natural to work with.


Only top voted, non community-wiki answers of a minimum length are eligible