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
493
votes
31 answers

How do I use Bash on Windows from the Visual Studio Code integrated terminal?

Visual Studio Code on Windows uses PowerShell by default as the integrated terminal. If you want to use Bash from Visual Studio Code, what steps should be followed?
Mahade Walid
  • 9,404
  • 5
  • 17
  • 25
475
votes
9 answers

Set language for syntax highlighting in Visual Studio Code

Before the confusion begins, this question is about Code, the new lightweight Visual Studio Editor. You can get it from here: https://code.visualstudio.com/ I have a textfile (.txt) with CSS in it and want to get syntax hightlighting. You can open…
Florian Leitgeb
  • 15,657
  • 6
  • 31
  • 40
468
votes
14 answers

Make selected block of text uppercase

Can I make a multi-line selection of text all capitals in Visual Studio Code? In Visual Studio it's Ctrl+Shift+U to do this. The extension that exists that I have seen only do non-multi-line blocks. Note: The UI of VSCode has changed since this…
Warren P
  • 65,725
  • 40
  • 181
  • 316
466
votes
23 answers

Method List in Visual Studio Code

I've recently started using the Visual Studio Code editor. I'm really loving it, but there's one critical feature (for me) that I haven't been able to find. Is there a method list, similar to the Navigator in NetBeans or Member dropdown in Visual…
Jim Carr
  • 4,863
  • 2
  • 17
  • 12
461
votes
9 answers

How to compare different branches in Visual Studio Code

How do I compare two different branches in Visual Studio Code? Is it possible?
Vitaly Menchikovsky
  • 7,684
  • 17
  • 57
  • 89
457
votes
12 answers

Why is .gitignore not ignoring my files?

See the image below. My .gitignore file should be ignoring all files in src/dist, but isn't.
Richard
  • 14,798
  • 21
  • 70
  • 103
454
votes
8 answers

VSCode regex find & replace submatch math?

%s@{fileID: \(213[0-9]*\)@\='{fileID: '.(submatch(1)-1900)@ I am using this regex search and replace command in vim to subtract a constant from each matching id. I can do the regex find in VSCode but how can I reference the submatch for maths &…
Rakka Rage
  • 15,941
  • 8
  • 33
  • 45
453
votes
21 answers

How do I move the panel in Visual Studio Code to the right side?

It's at the bottom by default. For example in the following image ,panel(Section D) is at the bottom, instead I want it to move to the rightside i.e., in the area where README.md editior shown in Editor Groups(Section C). Image Credits:…
1c.
  • 4,715
  • 2
  • 13
  • 7
452
votes
32 answers

VSCode showing only one file in the tab bar (can't open multiple files)

I hit some shortcut and I can't find the setting the turn it off. But opening multiple files doesn't show different tabs. Here's what I'm seeing But this is what I'm expecting when I open a new tab
Tolga E
  • 12,188
  • 15
  • 49
  • 61
445
votes
26 answers

How to change environment's font size?

Is there a way to change the environment font size in Visual Studio Code? Stuff like IntelliSense box, debug panel, file names, etc. I know how to change the editor's font size but I cannot figure out how to change the environment font size. So I…
Sul Aga
  • 6,142
  • 5
  • 25
  • 37
437
votes
11 answers

How can I view the Git history in Visual Studio Code?

I can execute various Git commands from Visual Studio Code, however I couldn't find a way to visualize the history.
rlesias
  • 4,786
  • 3
  • 15
  • 20
429
votes
11 answers

How to exclude folder from "Explore" tab?

I'm trying to exclude several folders on the Explore tab in Visual Studio Code. To do that, I have added a following jsconfig.json to the root of my project: { "compilerOptions": { "target": "ES6" }, "exclude": [ …
Andrey
  • 5,906
  • 4
  • 24
  • 30
422
votes
13 answers

How can I export settings?

How is it possible to export all Visual Studio Code settings and plugins and import them to another machine?
kagarlickij
  • 7,327
  • 10
  • 36
  • 71
416
votes
17 answers

Duplicate line in Visual Studio Code

I am trying to find the shortcut for duplicating a line in Visual Studio Code (I am using 1.3.1) I tried the obvious CTRL + D but that doesn't seem to work.
TheWebGuy
  • 11,429
  • 16
  • 52
  • 72
415
votes
13 answers

How do you format code on save in VS Code

I would like to automatically format TypeScript code using the build-in formatter when I save a file in Visual Studio Code. I'm aware of the following options, but none of them is good enough: Format manually Shift + Alt + F Format on type…
Tomas Nikodym
  • 13,210
  • 3
  • 19
  • 18