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
1870
votes
32 answers

How can I prevent VS Code from replacing a newly opened, unmodified (preview) tab with a subsequently opened one?

I am using Visual Studio Code 1.3.1 with the newly introduced tabs. When I click on files, the first file will open in a tab. If I do not make any changes to this file, the second clicked file will open in the same tab. How can I avoid this and make…
Michael Hoeller
  • 22,018
  • 10
  • 39
  • 66
1496
votes
12 answers

Vertical rulers in Visual Studio Code

Rendering More than One Ruler in VS Code VS Code's default configuration for a ruler is demonstrated below. "editor.ruler": 80 The issue I am having with the default VS Code configuration (as shown above) is that it only renders a single ruler.…
nalply
  • 26,770
  • 15
  • 78
  • 101
1339
votes
27 answers

How do I collapse sections of code in Visual Studio Code for Windows?

How do I fold or collapse sections of code in Visual Studio Code? Is this feature supported?
Nick
  • 14,291
  • 3
  • 17
  • 19
1326
votes
24 answers

How can I customize the tab-to-space conversion factor?

How do I customize the tab-to-space conversion factor when using Visual Studio Code? For instance, right now in HTML it appears to produce two spaces per press of TAB, but in TypeScript it produces 4.
J. Abrahamson
  • 72,246
  • 9
  • 135
  • 180
1220
votes
16 answers

How can I navigate back to the last cursor position in Visual Studio Code?

What is the keyboard shortcut to navigate back to the last cursor position in Visual Studio Code?
kimsagro
  • 15,513
  • 17
  • 54
  • 69
1181
votes
47 answers

Git push results in "Authentication Failed"

I have been using GitHub for a little while, and I have been fine with git add, git commit, and git push, so far without any problems. Suddenly I am having an error that says: fatal: Authentication Failed In the terminal I cloned a repository,…
zkirkland
  • 12,175
  • 3
  • 16
  • 18
1164
votes
34 answers

"code ." is not working in on the command line for Visual Studio Code on OS X/Mac

The command code . doesn't work in this manual. All the other steps before that worked. How can I call the Visual Studio Code in an OS X terminal? pwd /Users/mona/nodejs/myExpressApp code . -bash: code: command not found I ended up opening it…
Mona Jalal
  • 34,860
  • 64
  • 239
  • 408
1136
votes
21 answers

How do I search for files in Visual Studio Code?

I am used to Resharper where I can search for files, not the content, but the filename, which makes it quick to open new files. Is this feature implemented in Visual Studio Code and is there a shortcut for it?
Dofs
  • 17,737
  • 28
  • 75
  • 123
1110
votes
27 answers

Switch focus between editor and integrated terminal

Does anyone know the keyboard shortcut (Mac and Linux) to switch the focus between editor and integrated terminal in Visual Studio Code?
Abhijeet
  • 11,872
  • 5
  • 22
  • 24
1097
votes
24 answers

How do I duplicate a line or selection within Visual Studio Code?

Using Microsoft's Visual Studio Code, how do I duplicate a line of code and then move it up and down? (Similar to Sublime's cmd+shift+d behaviour) It's a feature that I use constantly, and am struggling using Visual Studio Code without it.
Chris
  • 54,599
  • 30
  • 149
  • 186
993
votes
24 answers

Visual Studio Code Tab Key does not insert a tab

I'm using Visual Studio Code as my code editor. I did a search on google but wasn't able to find anything about my issue. The issue is simple, pressing ⇥ Tab in the editor does nothing. I'm expecting it to insert 4 spaces. Anyone know what I can do…
anon
988
votes
29 answers

How do you format code in Visual Studio Code (VSCode)?

What is the equivalent of Ctrl + K + F and Ctrl + K + D on Windows in Visual Studio for formatting, or "beautifying" code in the Visual Studio Code editor?
Brandon Clapp
  • 66,931
  • 6
  • 20
  • 24
983
votes
34 answers

Multiline editing in Visual Studio Code

Is it possible to enable multiline editing like in Sublime Text? For example, press Ctrl to place additional cursor carets and being able to write/delete on multiple places in the document at one time.
AfBu
  • 9,949
  • 3
  • 13
  • 7
978
votes
13 answers

How do I hide certain files from the sidebar in Visual Studio Code?

In Visual Studio Code, what setting can be configured, using file patterns, to hide files from view in the sidebar's file-explorer? I would like to hide certain groups of files, like .meta and .git files.
Chris
  • 54,599
  • 30
  • 149
  • 186
959
votes
10 answers

Remove trailing spaces automatically or with a shortcut

Is there a way to remove trailing spaces in Visual Studio Code (automatically or with a shortcut)? I've been looking for this in the command palette and in the editor settings, but I cannot find what I am looking for.
schankam
  • 10,778
  • 2
  • 15
  • 26
1
2 3
99 100