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
272
votes
10 answers

TSLint extension throwing errors in my Angular application running in Visual Studio Code

I recently started seeing, what seems like, TSLint errors. They look like this: Not using the local TSLint version found for '/Users/myname/myproject/client/src/app/likes/likee/likee.component.ts'. To enable code execution from the current…
chuckd
  • 13,460
  • 29
  • 152
  • 331
265
votes
12 answers

How do I format all files in a Visual Studio Code project?

Is there a way to format all files in a project without formatting each one individually?
Chris Williams
  • 11,647
  • 15
  • 60
  • 97
265
votes
8 answers

Is it possible to configure control + scroll-wheel to increase/decrease zoom in VS Code?

Similar to the default in the Visual Studio editors or Sublime, I would like to use control + scroll-wheel to change the font size / zoom level, rather than control-plus/minus. I did not see any option in the User or Workspace preferences. Edit from…
Ed Schembor
  • 8,090
  • 8
  • 31
  • 37
263
votes
42 answers

Visual Studio Code - Target of URI doesn't exist 'package:flutter/material.dart'

I've just set up my Macbook for flutter development, So I downloaded flutter SDK, and placed it in my Documents. After, I set up my path variable to work with flutter in my command line. I execute the command flutter create todolist so I achieve a…
James
  • 3,580
  • 3
  • 25
  • 36
263
votes
5 answers

Visual studio code - keyboard shortcuts - expand/collapse all

Trying to find the equivalent to Ctrl + Shift + - in Intellij that collapses/expands all functions.
michali
  • 3,230
  • 4
  • 18
  • 20
261
votes
9 answers

How to exclude file extensions and languages from "format on save" in VSCode?

Currently in VSCode settings you can configure format on save as following: "editor.formatOnSave": true I want to exclude some file extensions, for example only format JavaScript but not HTML files.
gabrielAnzaldo
  • 3,014
  • 4
  • 19
  • 19
261
votes
11 answers

How do I add environment variables to launch.json in VSCode

Working with the new VSCode editor on a node.js project. I am attempting to configure my "Launch" profile for debugging by editing the launch.json file. I need to setup a connectionstring as an environment variable. According to the comments in the…
Jason Kibble
  • 2,647
  • 2
  • 18
  • 7
259
votes
10 answers

Automatically hard wrap lines at column in VSCode

How can I automatically hard wrap lines in VSCode? By that I mean if a line reaches a specified column, automatically insert a newline at the word boundary closest to that column without going over. Vim has a setting called textwidth that does this…
Brian Schlenker
  • 4,966
  • 6
  • 31
  • 44
259
votes
8 answers

Visual Studio Code how to resolve merge conflicts with git?

I tried to merge my branch with another branch and there was a merge conflict. In Visual Studio Code (version 1.2.1) I resolved all of the issues, however when I try to commit it keeps giving me this message: You should first resolve the un-merged…
annedroiid
  • 6,267
  • 11
  • 31
  • 54
253
votes
21 answers

Visual Studio Code: format is not using indent settings

When using the Format Code command in Visual Studio Code, it is not honoring my indent settings ("editor.tabSize": 2). It is using a tab size of 4 instead. Any ideas why this is happening? Thanks!
AndyPerlitch
  • 4,539
  • 5
  • 28
  • 43
251
votes
13 answers

Visual Studio Code - Convert spaces to tabs

I have both TypeScript and HTML files in my project, in both files tabs are converted to spaces. I want to turn the auto-conversion off and make sure that my project has only tabs. Edit: With this setting it seems to work in HTML files but not in…
Matan Yadaev
  • 3,018
  • 3
  • 19
  • 21
251
votes
38 answers

Visual Studio Code cannot detect installed Git

Visual Studio Code reports "It look like git is not installed on your system." when I try to switch to the git view. I know I have git installed and used by other Git clients. I guess if I reinstall Git following Visual Studio Code's instruction…
zhouji
  • 3,049
  • 3
  • 19
  • 13
248
votes
13 answers

Disable tooltip hint in Visual Studio Code

How can I disable the default tooltip hint message in VSCode? It's annoying sometimes.
Dark star
  • 5,192
  • 9
  • 35
  • 54
247
votes
11 answers

How do I turn on text wrapping by default in VS Code

Usually when I use VS Code, very first thing I do on new document is command: "Toggle Word Wrap" or Alt+Z. I tried looking into User Settings, but I didn't find any relevant entries. Is there some way to have text wrapping 'on' for every document by…
Yakuza
  • 3,237
  • 2
  • 21
  • 18
247
votes
11 answers

How to prevent Visual Studio Code from always reopening the previous files or folders?

Visual Studio Code always seems to remember my session and reopen the files and/or projects that were open the last time I used it. It obviously behaves correctly when running it from the command line with a file or folder supplied, but when opening…
Matt Peterson
  • 5,169
  • 4
  • 32
  • 34