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
909
votes
11 answers

Collapse all methods in Visual Studio Code

In Visual Studio Professional, we have a shortcut key, Ctrl + M Ctrl + O to collapse all methods and properties in a class. How can I do a similar thing in Visual Studio Code? I know there are shortcut keys like Ctrl + Shift + [, but this does not…
eadam
  • 23,151
  • 18
  • 48
  • 71
861
votes
17 answers

What is a 'workspace' in Visual Studio Code?

For example, Visual Studio Code talks about applying settings at the user level vs the workspace level. On the one hand, it could refer to a project directory that you have opened; or it could refer to everything you have opened in a particular…
Nat Kuhn
  • 9,493
  • 5
  • 18
  • 26
838
votes
23 answers

How can you create multiple cursors in Visual Studio Code

What are the keyboard shortcuts for creating multiple cursors in VS Code?
Kiba
  • 10,155
  • 6
  • 27
  • 31
819
votes
14 answers

What are the differences between Visual Studio Code and Visual Studio?

Microsoft recently released Visual Studio Code and I am a little confused about its usage, since Visual Studio has lot of functional similarities with it.
Aswajith
  • 9,117
  • 5
  • 16
  • 20
808
votes
26 answers

How can I switch word wrap on and off in Visual Studio Code?

When using code files, you typically don't need longer lines to wrap around. However, with .md files this is in fact rather useful. However, I can't seem to find the option to enable word wrap so longer lines will be wrapped. To reproduce, open…
Jeroen
  • 60,696
  • 40
  • 206
  • 339
789
votes
16 answers

Visual Studio Code - is there a Compare feature like that plugin for Notepad ++?

Is there a Compare feature like the Plugin for Notepad++?
user4863890
762
votes
27 answers

Run / Open VSCode from Mac Terminal

I'd like to run / open Visual Studio Code from the Mac OSX Terminal by running this command code .. I found instructions here: https://code.visualstudio.com/Docs/setup Apparently I need to include this in my .bashrc file, so I did, but to no…
Johnny Oshika
  • 54,741
  • 40
  • 181
  • 275
754
votes
11 answers

Find and replace with a newline in Visual Studio Code

I am trying out the new Microsoft Visual Studio Code editor in Linux Fedora environment. I would like to know how to replace new line (\n) in place of some other text. For example, I have html text like this which I would like to…
Sriram
  • 8,574
  • 4
  • 21
  • 30
744
votes
21 answers

How to change indentation in Visual Studio Code?

For every typescript file visual studio code uses an auto indentation of 8 spaces. This is a bit too much for my taste but I can't find where to change it. Maybe it's available as a setting but under a different name as I can't find anything related…
HMR
  • 37,593
  • 24
  • 91
  • 160
704
votes
25 answers

Is there a quick change tabs function in Visual Studio Code?

The current function of giving me a dropdown option of which tab to choose is just so annoying. Is there a possibility to remove it so the tabs would work like in some modern web browser.
yodalr
  • 9,778
  • 10
  • 32
  • 47
699
votes
20 answers

Choose folders to be ignored during search in VS Code

Right now when I use ⌘+O to search for files, the fuzzy matching appears to operate over all files in the current project. Unfortunately, this includes a number of files from build and vendor directories. So, for instance, if I want to search for…
J. Abrahamson
  • 72,246
  • 9
  • 135
  • 180
678
votes
40 answers

Why do I keep getting "[eslint] Delete `CR` [prettier/prettier]"?

I am using VS Code with Prettier 1.7.2 and ESLint 1.7.0. After every newline I get: [eslint] Delete `CR` [prettier/prettier] This is the .eslintrc.json: { "extends": ["airbnb", "plugin:prettier/recommended"], "env": { "jest": true, …
bier hier
  • 20,970
  • 42
  • 97
  • 166
676
votes
14 answers

Show whitespace characters in Visual Studio Code

Is it possible to show whitespace characters, like the space character, in Visual Studio Code? There doesn't appear to be an option for it in the settings.json (though it is an option in Atom.io), and I haven't been able to display whitespace…
653
votes
20 answers

How to search for text in all files in a directory?

Is there a way to search for text in all files in a directory using VS Code? I.e., if I type find this in my search, it will search through all the files in the current directory and return the files that matched.
user2465134
  • 8,793
  • 5
  • 32
  • 46
650
votes
19 answers

How to use Visual Studio Code as default editor for git?

When using git at the command line, I am wondering if it is possible to use Visual Studio Code as the default editor, i.e. when creating commit comments and looking at a diff of a file from the command line. I understand that it won't be possible to…
Gary Ewan Park
  • 17,610
  • 5
  • 42
  • 60