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
3 answers

Can't push to remote SSH repo on GitHub via VSCode

I already updated my Git for Windows. I checked the keys are correct. The only "solution" is to start ssh-agent Or opening VSCode via Git Bash. So, any useful solution? Log: > git push origin master:master git@github.com: Permission denied…
dawn
  • 1,327
  • 6
  • 19
  • 39
24
votes
2 answers

How to find command by pressing keybinding in VSCode

I'm looking for a way for VS Code to tell me the command name for a keybinding. In Emacs, this functionality is available under describe-key (C-h k). For example, in VS Code ⌘ A maps to editor.action.selectAll. So ideally I'd press a keyboard…
Razzi Abuissa
  • 3,337
  • 2
  • 28
  • 29
24
votes
13 answers

Random High CPU Usage

I have noticed that Visual Studio Code randomly has a really high CPU usage. Generally, this seems to be related to the window where I have a SQL server project. Below is the output from code --status when this recently happened. Any insights…
thebitguru
  • 872
  • 3
  • 12
  • 30
24
votes
1 answer

PHP Intellisense in Visual Studio Code

I'm using Visual Studio Code to develop in PHP, and I've been having some trouble getting Code to provide the proper intellisense results. For example, this newly created Codeception unit test:
Jimmy
  • 2,805
  • 6
  • 43
  • 57
24
votes
5 answers

Prevent Prettier from converting single line object declarations into multi line in Visual Studio Code?

I'd installed prettier extensions and my json object definitions are now breaking lines after formatting. How can I avoid it? I want to keep inline object declarations. for instance, before formatting: "properties": { "d0": …
Daniel Santos
  • 14,328
  • 21
  • 91
  • 174
24
votes
5 answers

How do you remove trailing spaces in all files except Markdown?

In Visual Studio Code the setting "files.trimTrailingWhitespace": true removes trailing white space when files are saved, or Shift + Alt + F is used to format a file, but this breaks Markdown formatting. How do you selectively turn off white space…
GollyJer
  • 23,857
  • 16
  • 106
  • 174
24
votes
3 answers

PHP 7 Xdebug in VSCODE: how to ignore exceptions

I'm using plugin PHP Debugger in Visual Studio Code to debug PHP codes. All were ok with PHP <= 5.6. The debugger worked like a charm. But when I try to debug the code with PHP 7, it does not work as expected. It does not jump to the break points I…
Hieu Nguyen
  • 263
  • 2
  • 10
24
votes
11 answers

E0401:Unable to import 'flask'

Am new in flask development and trying to import flask in my project but Pylint is giving this error in VSCode E0401:Unable to import 'flask', but I installed flask already in my project but I don't know how to solve this, how can I resolve it. My…
user7615935
24
votes
3 answers

How to allow VS Code to take input from users?

I have installed Visual Studio Code 1.23.1 and added extensions - Python, Code Runner. With Code Runner, now I can see the Run Code symbol (triangle) and on highlighting it, I see the shortcut Ctrl + Alt + N. But when I try to use it to run the code…
300
  • 965
  • 1
  • 14
  • 53
24
votes
4 answers

VSCode files.associations

I have some .txt files in a subfolder of my project which contain SQL code. I want SQL syntax highlighting so I added this to my workspace folder settings: { "files.associations": { "**/somefolder/*.txt": "sql" } } This works when…
Bernhard Döbler
  • 1,960
  • 2
  • 25
  • 39
24
votes
5 answers

Beautify on save in VS code?

I just installed a beautify extension for vs code I want to have my code beautified whenever I save a file, but can't figure out how to configure it that way. It says Beautify on save will be enabled when "editor.formatOnSave" is true. But i have…
UC3D
  • 383
  • 1
  • 3
  • 10
24
votes
3 answers

VSCODE - How to auto closing html code of ruby on rails html.erb file

I want to auto closing the html code in the html.erb file. What should I do? Added screenshots
COLEAN
  • 665
  • 2
  • 9
  • 24
24
votes
5 answers

How to change string representation of objects in Nodejs debug console view

How do I change the string representation of an object instance in nodejs debug console. Is there a method (like toString() in .NET) I can override? Consider the following code: class SomeObject{ constructor(){ this._varA = "some…
Leo
  • 5,013
  • 1
  • 28
  • 65
24
votes
2 answers

How do I setup VScode debug session for Golang and AppEngine?

VScodeDebugGoAppEngine Hello World tutorial that shows how to setup VS Code to debug Golang App Engine code with Visual Studio (aka VScode ) This is using using the Helloworld code from AppEngine documentation: go get -u -d…
BryanWheelock
  • 12,146
  • 18
  • 64
  • 109
24
votes
3 answers

How to get the base directory in visual studio code snippet?

I am trying to get the file current directory in a snippet for visual studio code. VSCode has a variable: TM_DIRECTORY, which is the fullpath. eg: {folder: "$TM_DIRECTORY"} would be replaced by {folder:…
Kev
  • 5,049
  • 5
  • 32
  • 53