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
24
votes
5 answers

Debug single javascript file in “Visual Studio Code”

Is there a way to debug a single javascript file step by step without launching a node server? For example seed files by knex. Node is definitely needed, but I do not know how to start the VSC debugger with only the file.
Carol.Kar
  • 4,581
  • 36
  • 131
  • 264
24
votes
1 answer

How to change Intellisense priority in Visual Studio Code

How do I change the priority of the abbreviation recommendations inside Visual Studio Code? The file in question is a .scss file and I have tried with and without the Sass extension in Code installed. As far as I can tell currently it just lists…
Filip Petrovic
  • 837
  • 2
  • 11
  • 22
24
votes
7 answers

Keyboard Shortcut to open Command Palette in VS Code?

On windows 10 running VSCode, how do I open the Command Palette with keyboard shortcuts? Under the view menu, it says the shortcut is ctrl+shift+P but doing that does not open the Command Palette?
Zachscs
  • 3,353
  • 7
  • 27
  • 52
24
votes
7 answers

Visual Studio Code HTML wrong comment type

I recently used VS code for Wordpress development but I encountered a weird bug when I comment with (ctrl+/) to an html element. Instead of commenting () it uses (//) for my html code? Has anybody experience this? Do you know of any…
Leo Salayog
  • 241
  • 2
  • 7
24
votes
4 answers

Visual Studio Code - Save file before build

Is it possible to automatically save all changed files before build? It's a bit tedious to press Ctrl+s and then Ctrl+Shift+b all the time.
Amomum
  • 6,217
  • 8
  • 34
  • 62
24
votes
1 answer

VS Code snippet - escape ${file}

I'd like to create a snippet in VS Code, which includes exact string ${code}. However, when I enter it in this form, VS Code tries to interpret it as snippet parameter. How should I escape it properly?
Spook
  • 25,318
  • 18
  • 90
  • 167
24
votes
5 answers

VS Code - Is there a way you can make the Minimap bigger?

I have enabled the MiniMap in Visual Studio Code (VSCODE) with the following code: "editor.minimap.enabled": true But can I make it bigger? It's so small at the right.
UNTITLED.PNG
  • 471
  • 1
  • 5
  • 12
24
votes
3 answers

VSCode autoformat going to 2 spaces instead of 4

Whenever I let vscode autoformat my code, it formats to 2 spaces instead of 4, even though apparently the default is 4 spaces, and I have not touched the settings.json Editor.tabsize also shows 4. In the bottom right hand corner, its shows spaces:…
Chris
  • 1,101
  • 2
  • 9
  • 14
24
votes
3 answers

Visual studio code interactive python console

I'm using visual studio code with DonJayamanne python extension. It's working fine but I want to have an interactive session just like the one in Matlab, where after code execution every definition and computational result remains and accessible in…
user1
  • 601
  • 1
  • 6
  • 12
24
votes
2 answers

How do I remap the `Alt+Click` action in visual studio code?

according to the documentation here I can add multiple cursors in visual studio code by using alt+Click in the editor. Sadly alt+drag is already used by the window manager to move the window around, so visual-studio-code does not get any key events.…
Arne
  • 7,921
  • 9
  • 48
  • 66
24
votes
4 answers

VS Code: What is the difference between push and publish

On the GIT tab in Visual Studio Code there is an context menu with these items: Sync Pull Pull (release) Push ================== Publish ================== ... What does the publish button do?
Liero
  • 25,216
  • 29
  • 151
  • 297
24
votes
4 answers

How to open a Visual Studio Code Folder (Project) in Visual Studio IDE

How do I open I a Visual Studio Code folder in Visual Studio 2015? If I open it as a "Web Site", it tries to treat the node_modules directory as part of the project's normal JavaScript files and hits an error when the path exceed the maximum path…
24
votes
4 answers

VS Code customize sidebar

Is there any way to customize sidebar in VS Code? In particular, I want to change the font size. Is there a user setting for that? Or, maybe, I can edit it somehow via stylesheet since it's an Electron app, like in Atom?
tristantzara
  • 5,597
  • 6
  • 26
  • 40
24
votes
12 answers

Visual studio code color picker

I love visual studio code but there's one thing that is missing in my opinion. A color picker. Does anyone know if there's a color picker for visual studio code just like in visual studio?
Joestoen
  • 545
  • 1
  • 5
  • 14
24
votes
4 answers

Can VS Code type text with keyboard shortcuts?

I know you can enter a block of text with code snippets but can you configure keyboard shortcuts to enter some text? With "editor.action" you can move the cursor but I can't find if it's possible if you can get it to type some text. Something like…
VladimirSD
  • 401
  • 3
  • 11
1 2 3
99
100