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
334
votes
12 answers

Is there a shortcut to hide the side bar in Visual Studio Code?

It'd be handy if there was a keyboard shortcut for hiding and showing the sidebar. Sublime has cmd+k+b and it's a quick way of gaining some screen real estate when you need it. Anybody know if this exists or if the user can add it manually to VS…
launchoverit
  • 4,807
  • 4
  • 20
  • 23
333
votes
13 answers

How do I press and hold a key and have it repeat in VSCode?

I use the vim plugin and I typically scroll in vim by just holding j. In VSCode holding j just does a single j command, no matter how long it's held for. Even in vanilla vscode this also doesn't work - problematic if you're trying to type long…
jjcm
  • 3,677
  • 3
  • 17
  • 14
331
votes
5 answers

How do you reference a capture group with regex find and replace in Visual Studio 2012, 2013, 2015, and VS Code

I realize there are a ton of questions about this, but none that I found specifically referenced which VS version they referred to. With that important information lacking, I still was unable to successfully use the answers I found. The most common…
316
votes
4 answers

Visual Studio Code scroll back buffer

Is there a way to control how many lines can be in the scroll back buffer? I need a few thousand lines. I'm writing testing code and have extensive output going to a log, but I have simple pass / fail results to the console. The validations for each…
Keith
  • 4,129
  • 3
  • 13
  • 25
316
votes
8 answers

How to switch text case in visual studio code

How does one switch the case of highlighted text in Visual Studio Code? VS allows this via CTRL+SHIFT+U and CTRL+U. Is there a command binding that I can set up to do this, or is it by default some other key combination?
John
  • 3,451
  • 2
  • 16
  • 7
313
votes
12 answers

Install a Nuget package in Visual Studio Code

How can I install a Nuget Package in Visual Studio Code? I know in Visual Studio, we can do this through the Nuget Package Manager console, but how do I do it in VS Code?
Gyan Parkash
  • 3,233
  • 2
  • 13
  • 10
310
votes
32 answers

'TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined'

I'm working on a project in React and ran into a problem that has me stumped. Whenever I run yarn start I get this error: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined I have no idea why this…
310
votes
23 answers

How to add a @tailwind CSS rule to CSS checker

Tailwind CSS adds a @tailwind CSS at rule which is flagged as unknown. How can I avoid this error? For example, styles.css @tailwind preflight; @tailwind utilities;
Steve Lee
  • 5,191
  • 5
  • 17
  • 18
282
votes
6 answers

Visual Studio Code — Insert Newline at the End of Files

When saving a file using Visual Studio Code, a newline is not automatically added to the end of the file, causing all sorts of potential issues. How can I append a newline automatically in Visual Studio Code?
LJH
  • 7,444
  • 3
  • 10
  • 19
282
votes
11 answers

Which font is used in Visual Studio Code Editor and how to change fonts?

I tried Visual Studio Code editor(https://code.visualstudio.com/) which is recently announced at build. I tried it on Windows and Ubuntu. I can see that default font of Visual Studio Code Editor is not consolas which prefer on my code editors. So…
Jalpesh Vadgama
  • 13,653
  • 19
  • 72
  • 94
281
votes
34 answers

How to execute Python code from within Visual Studio Code

Visual Studio Code was recently released and I liked the look of it and the features it offered, so I figured I would give it a go. I downloaded the application from the downloads page, fired it up, messed around a bit with some of the features ...…
RPiAwesomeness
  • 5,009
  • 10
  • 34
  • 52
279
votes
11 answers

How to restart VScode after editing extension's config?

VScode notifies you when you open a config of an extension: remember to Restart VScode But it says nothing about how. They use capital letter for the restart word, so normally it should mean something if you emphasize an appellation. Is there…
Green
  • 28,742
  • 61
  • 158
  • 247
275
votes
13 answers

How do I set up Visual Studio Code to compile C++ code?

Microsoft's Visual Studio Code editor is quite nice, but it has no default support for building C++ projects. How do I configure it to do this?
user3703887
274
votes
23 answers

Visual Studio Code PHP Intelephense Keep Showing Not Necessary Error

After the latest update of PHP Intelephense that I get today, the intelephense keep showing an error for an undefined symbol for my route (and other class too), there is no error like this before and it's bothering me. Here is the error screenshot…
Adrian Edy Pratama
  • 3,841
  • 2
  • 9
  • 24
273
votes
13 answers

VSCode -- how to set working directory for debugging a Python program

How do I run a Python program under debug and set the working directory for the run?
user1443098
  • 6,487
  • 5
  • 38
  • 67