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
633
votes
27 answers

How can you export the Visual Studio Code extension list?

I need to send all my installed extensions to my colleagues. How can I export them? The extension manager seems to do nothing... It won't install any extension.
Andrew
  • 6,808
  • 3
  • 18
  • 33
630
votes
11 answers

How to associate a file extension with a certain language in VS Code

Or is there a way to switch the current file's language so that the syntax is highlighted correctly? For example, *.jsx is actually JavaScript but VS Code doesn't recognize it.
John Deev
  • 7,921
  • 3
  • 12
  • 10
625
votes
42 answers

How to comment multiple lines in Visual Studio Code?

I cannot find a way to comment and uncomment multiple lines of code in Visual Studio Code. Is it possible to comment and uncomment multiple lines in Visual Studio Code using some shortcut? If yes, how to do it?
gog
  • 11,788
  • 23
  • 67
  • 129
616
votes
9 answers

Should I commit the .vscode folder to source control?

Is the .vscode folder meant to be committed to source control? In a fresh project, the folder is empty, except the settings.json file. What kind of things would go into this folder? Is it machine-specific, developer-specific like the .vs folder and…
Ronald Zarīts
  • 11,819
  • 8
  • 39
  • 42
592
votes
11 answers

Visual Studio Code open tab in new window

I am trying to open a tab in a new window in Visual Studio Code so I can move it to another screen. If I drag the tab the other screen, a file is created. Is there a shortcut to open a tab in a new Visual Studio Code window so I can move it to…
doorman
  • 15,707
  • 22
  • 80
  • 145
589
votes
14 answers

Select all occurrences of selected word in VSCode

Are there any tricks/extensions to select all instances of selected word(s) in Visual Studio Code to facilitate editing or deleting those instances without search and replace? Perhaps something similar to Alt+F3 in Sublime Text?
Alaa M. Tekleh
  • 6,938
  • 4
  • 16
  • 29
589
votes
12 answers

How do I find and replace all occurrences (in all files) in Visual Studio Code?

I can't figure out how to find and replace all occurrences of a word in different files using Visual Studio Code version 1.0. I get the impression this should be possible since doing Ctrl + Shift + F allows me to simply search a folder, but i am…
Cisum Inas
  • 11,552
  • 11
  • 40
  • 55
572
votes
8 answers

Are there bookmarks in Visual Studio Code?

How can I set bookmarks in Visual Studio Code? I can't find any keyboard shortcuts. Or is there anything else that I can use instead?
Rheinprinz
  • 5,816
  • 2
  • 14
  • 11
559
votes
47 answers

Why does Prettier not format code in VS Code?

In my Nuxt application where ESlint and Prettier are installed and enabled, I switched to Visual Studio Code. When I open a .vue file and press CMD+ Shift + P and choose Format Document, my file does not get formatted at all. My .prettierrc…
Billal Begueradj
  • 20,717
  • 43
  • 112
  • 130
547
votes
32 answers

How to open Visual Studio Code from the command line on OSX?

The docs mention an executable called code, but I'm not sure where I can find that so I can put it on my path. The zip I downloaded from the VSCode site did not include any such executable. (I am able to run the .app just fine.) Is this a…
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
538
votes
17 answers

How to remove the file preview / minimap on the right side of the editor in VS Code?

This is very distracting to me: I searched through the menus, but didn't find any setting to remove it. Is there any way to banish it from the editor?
eugenekr
  • 6,260
  • 3
  • 21
  • 26
528
votes
40 answers

Experimental decorators warning in TypeScript compilation

I receive the warning... Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option `to remove this warning. ... even though my compilerOptions in tsconfig.json have the…
bensiu
  • 24,660
  • 56
  • 77
  • 117
521
votes
23 answers

How do I jump to a closing bracket in Visual Studio Code?

In VSCode when I type a bracket, e.g '(', it automatically creates the ending bracket: ')'. Are there any shortcuts to jump to the closing bracket or parenthesis, without pressing the 'End' key? I found a way to do in Sublime Text 2 that did exactly…
resurrecteds
  • 5,176
  • 2
  • 16
  • 18
505
votes
7 answers

Find a file by name in Visual Studio Code

How can I find a file by name in Visual Studio Code? A Visual Studio shortcut I'm used to is CTRL+,, but it does not work here.
Nenad
  • 24,809
  • 11
  • 75
  • 93
501
votes
6 answers

How to add more indentation in the Visual Studio code explorer file tree structure?

How to add more indentation in a file tree structure? It has a little bit indentation I want to increase more just like NetBeans. check the image
Akshay Kumar
  • 5,740
  • 2
  • 12
  • 19