Questions tagged [visual-studio-code]

Visual Studio Code is a text editor available for Linux, Mac, and Windows. You can also use this tag for unofficial binaries of the portion of the code that is open source (such as VSCodium) as well. It includes support for debugging, embedded Git control, various extensions and rich development experiences such as intelligent code completion. It is mainly developed by Microsoft, and built on Electron like GitHub's Atom.

Visual Studio Code is a lightweight, but powerful, source code editor developed by Microsoft. It runs on the desktop and is available for Windows, Mac, and Linux. It comes with built-in support for JavaScript, TypeScript, and Node.js and has a rich ecosystem of extensions for other languages (such as C++, C#, Python, and PHP) and runtimes. It is licensed under the Microsoft Software License Terms, but most of the source code is available under the MIT license. There are unofficial binaries (such as VSCodium) that contain only the MIT-licensed code.

Visual Studio Code uses the Blink layout engine to render the interface, Electron for the framework, and TypeScript for the program logic.

Links

Syntax

Language packages extend the editor with syntax highlighting and/or snippets for a specific language or file format.

Migrating from other editors

The Visual Studio Code team provides keymaps from popular editors, making the transition to Visual Studio Code almost seamless and easy.

Migrating from Vim

Vim Mode - Relatively new, but promising extension implementing Vim features in Visual Studio Code

Migrating from Atom

Popular Atom keybindings for Visual Studio Code

Migrating from Sublime Text

Popular Sublime Text keybindings for Visual Studio Code.

Migrating from Visual Studio

Popular Visual Studio keybindings for Visual Studio Code.

Migrating from IntelliJ IDEA

Popular IntelliJ IDEA keybindings for Visual Studio Code.

Using Visual Studio Code with particular technologies

Microsoft created a collection of recipes for using Visual Studio Code with particular technologies (mostly Web).

Make sure to visit it at Microsoft/vscode-recipes

Related Tags

56460 questions
413
votes
21 answers

How do I open multiple instances of Visual Studio Code?

Today Microsoft released the Visual Studio Code file/folder editor. The first limitation is it appears to be a single-instance application. Is there a way of getting multiple instances, or otherwise having it open multiple folders simultaneously?
Binary Worrier
  • 50,774
  • 20
  • 136
  • 184
403
votes
20 answers

Is there a hotkey to switch between split window panes?

Visual Studio Code has a hotkey combination to split the current window to 2 or 3 panes: "key": "ctrl + \", "command": "workbench.action.splitEditor" Unfortunately, I can't find a way to switch between such panes without the mouse. My…
bialix
  • 20,053
  • 8
  • 46
  • 63
397
votes
6 answers

How can I commit some changes to a file, but not others, in VSCode?

VSCode has excellent git integration but I can't find a way to do partial commits. Basically, I want to be able to select specific changes in my files and stage them without staging the entire file. This functionality is supported by the git CLI,…
Rayne
  • 31,473
  • 17
  • 86
  • 101
397
votes
29 answers

How to view an HTML file in the browser with Visual Studio Code

How can I view my HTML code in a browser with the new Microsoft Visual Studio Code? With Notepad++ you have the option to Run in a browser. How can I do the same thing with Visual Studio Code?
user4863890
385
votes
12 answers

Change the default terminal in Visual Studio Code

I am using Visual Studio Code on my Windows 10 PC. I want to change my default terminal from Windows PowerShell to Bash on Ubuntu (on Windows). How can I do that?
abhijeetps
  • 4,609
  • 4
  • 17
  • 30
383
votes
10 answers

How to do tag wrapping in VS code?

I would like to wrap my selected html within a tag in VS code. How do I do that?
hannes neukermans
  • 12,017
  • 7
  • 37
  • 56
361
votes
20 answers

Open multiple Projects/Folders in Visual Studio Code

How do I open multiple projects/folders in a single Visual Studio Code instance, and open multiple files in single view? Does it has any option for future change request?
Manish Sapkal
  • 5,591
  • 8
  • 45
  • 74
356
votes
8 answers

Visual Studio Code: How to show line endings

How can I display lineendings (CR,LF) in Visual Studio Code (not in Visual Studio)? At the moment there is only the little statusbar menu which display/change the line ending if the actual file. But sometimes it would be great to see the line…
Michael Aigner
  • 4,820
  • 4
  • 21
  • 33
351
votes
14 answers

Visual Studio Code: How to split the editor vertically

In Visual Studio Code, a while ago, when I used menu View → Split Editor, it would split vertically. (One file on the left and one file on the right.) I updated Visual Studio Code and when when I do menu View → Split Editor, it always splits…
RainingChain
  • 7,397
  • 10
  • 36
  • 68
351
votes
22 answers

Run JavaScript in Visual Studio Code

Is there a way to execute JavaScript and display the results using Visual Studio Code? For example, a script file containing: console.log('hello world'); I assume that Node.js would be needed but can't work out how to do it? By Visual Studio Code…
Nick Le Page
  • 4,109
  • 3
  • 21
  • 26
350
votes
32 answers

Visual Studio Code is always asking for Git credentials

I started using Visual Studio Code, and I was trying to save my test project into GitHub, but Visual Studio Code is always asking for my GitHub credentials. I have installed in my PC GitHub Desktop and also Git. I already ran: git config --global…
ddieppa
  • 5,866
  • 7
  • 30
  • 40
348
votes
13 answers

Hide .js.map files in Visual Studio Code: File Nesting

I am working on a typescript project in Visual Studio code and would like to hide the .js.map (and maybe even the .js) files from appearing in the file explorer. Is it possible to display only the .ts files in the file explorer?
Tyler
  • 17,669
  • 10
  • 51
  • 89
337
votes
11 answers

How to open Visual Studio Code's 'settings.json' file

I did it many times, and each time I forgot where it was. Menu File → Preferences → Settings. I get this: I want to open file settings.json (editable JSON file) instead. How can I do that?
Kasheftin
  • 7,509
  • 11
  • 41
  • 68
336
votes
6 answers

Is there a way to remove unused imports and declarations from Angular 2+?

Is there some plug-in of Visual Studio Code or other means that could help us to tidy and organize the imports and references quickly and effectively? For example, there are maybe hundreds of imports like this import {…
ske
  • 4,694
  • 3
  • 23
  • 35
335
votes
33 answers

How can I clear the terminal in Visual Studio Code?

I need to clean the contents of the terminal in Visual Studio Code. Every time I use Maven, the output of the terminal is attached to the previous build, which is confusing me. How do I clear the terminal window with some command or keyboard…
danilo
  • 7,680
  • 7
  • 43
  • 46