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
25
votes
1 answer

Enable Visual Studio Code to generate constructor from Typescript class

I use Visual Studio Code to develop Angular 2 apps in Typescript. Is there any means to save the effort of writing constructors with its parameter list myself? Would be great if the IDE could generate the constructor based on the class members like…
Emdee
  • 1,689
  • 5
  • 22
  • 35
25
votes
4 answers

How to move a file to another folder in VS Code?

Given the file tree: x/y/a.txt How do I move the file up to: x/a.txt When right clicking on the file I just see delete and rename but not the move command. A google search did not reveal anything about this. I use vscode 1.6.1 Update: It is…
David Michael Gang
  • 7,107
  • 8
  • 53
  • 98
25
votes
8 answers

How to open Visual Studio Code with admin privileges to make effect of the installed extensions

I have Ubuntu 16.04 and I have to download the C# extension for Visual Studio Code, once I installed it, It doesn't make effect. Then, vscode give me and advice that I should open vscode with admin privileges to make effect of the extensions…
Anargu
  • 517
  • 2
  • 8
  • 17
25
votes
4 answers

Does Visual Studio Code have a key binding resolver?

The Atom editor has a command that is bound to 'ctrl-.' that is called the keybinding resolver: Once you activate key-resolver mode, any key you subsequently press will tell you what command(s) are bound to it, in all possible contexts, and show…
vt5491
  • 2,254
  • 2
  • 22
  • 34
25
votes
6 answers

VS Code - Code Formatting space before curly braces

When I use autoformat function in VS Code editor it insert spaces before curly brackets like this: From: To:
25
votes
5 answers

Can I automatically start a task when a folder is opened?

Does VS code support starting a gulp-watch task on startup? I'd like to start the watcher when I open the editor.
Maarten
  • 354
  • 1
  • 4
  • 6
24
votes
2 answers

VSCode Remote WSL Downloading Server Every Time

Every time I open Remote WSL, it downloads server. Even after download is completed, when I open VSCode and Remote WSL again, it starts downloading again. How to solve this so that it doesn't download server every time?
zibidigonzales
  • 338
  • 3
  • 9
24
votes
1 answer

error: NU1100: Unable to resolve 'MicrosoftOfficeCore (>= 15.0.0)' for 'net5.0'

In Terminal of Visual Studio Code, when I try to run: dotnet add package MicrosoftOfficeCore --version 15.0.0 I get the following error on Visual Studio Code terminal: error: NU1100: Unable to resolve 'MicrosoftOfficeCore (>= 15.0.0)' for…
Ghislain Bruyere
  • 373
  • 1
  • 2
  • 10
24
votes
2 answers

Highlight Undefined Javascript Variables in Visual Studio Code

One of my faviourite mistakes in Javascript is to forget to define variables I am using locally in a function. As you all know, due to scope, this is not always an error. Is there any way in Visual Studio Code to highlight variables that are not…
Rewind
  • 2,554
  • 3
  • 30
  • 56
24
votes
2 answers

How To Disable VSCode Git Rebase UI

How do I disable VS Code's Interactive Rebase UI? I'm hoping to return to the previous experience where running git rebase -i opens a text file into VS Code.
Reed Dunkle
  • 3,408
  • 1
  • 18
  • 29
24
votes
9 answers

No definition found for function - VSCode Python

I am using VSCode for Python along with the Microsoft for Python extension enabled in VSCode. For Python v3.9.0 I am getting No definition found if I try to seek a function definition. However, I do not get the error if I use my Conda Virtual…
Mihir
  • 520
  • 2
  • 6
  • 18
24
votes
2 answers

VSCode Flutter - stop tracking Flutter repo changes

I can't figure out when this started, but suddenly I find my repo tracking all my changes just fine, but... There's another repo open - like the entire Flutter source - and my source control is tracking thousands of changes. Is there some easy way…
Bill Noel
  • 1,120
  • 9
  • 21
24
votes
1 answer

VS Code - Is there a way to calculate all the lines of code in a project?

Is there native functionality or a recommended extension to get the number of lines of code in a project/workspace or folder in VS Code? I found this older post below for for VS 2010 & 2013 using Analyze --> Calculate Code Metrics as native…
Jason_L
  • 427
  • 1
  • 3
  • 12
24
votes
7 answers

How do I turn off text formatting on save in visual studio code?

I don't know why my code is auto formatted on save and for some reason changing the layout. I figured out this was due to auto format on save. How do I turn auto save off in Visual Studio Code?
anil shrestha
  • 2,136
  • 2
  • 12
  • 26
24
votes
6 answers

No GPG passphrase prompt in Visual Studio Code on Windows 10 for signed git commits using WSL2

I am unable to use signed commits within Visual Studio Code when committing code in WSL2 from Windows 10. THE ISSUE No passphrase prompt is shown within Windows 10 resulting in git failing with error: gpg failed to sign the data SETUP Windows…
39digits
  • 783
  • 2
  • 5
  • 13