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

Visual Studio Code asking to authenticate 'Default keyring' everytime I start

I started using Linux lite 5.0 on my laptop last month. (I am fairly new to the Linux enviroment, just migrated from Windows 10). So I installed Visual studio Code using snap and everytime I start it up, it asks to authenticate 'Default Keyring'…
Munish-Soni
  • 241
  • 1
  • 2
  • 6
24
votes
3 answers

Why after update VSCode giving this error? Could not read source map for ... (Node.js)

My program was working before updating Visual Studio Code. After updating, Why am I get this error? Could not read source map for file:///c:/Users/s.aytan/Desktop/node/new/Dashboard2/node_modules/fecha/lib/fecha.umd.js: ENOENT: no such file or…
safa aytan
  • 431
  • 1
  • 6
  • 16
24
votes
2 answers

Is there a way to get git to work properly from within a dev container using VS Code?

I am working with VS Code and I installed the Remote Development extension. I created a devcontainer for my Angular application. So far, everything works fine. The Dockerfile and the devcontainer.json files are pretty simple: Dockerfile: FROM…
michael
  • 787
  • 2
  • 6
  • 12
24
votes
1 answer

Tell VS Code to always use relative paths for TypeScript auto imports?

VS Code is auto-importing everything relative to baseUrl using Node-like non-relative paths, which is what I don't want. How do I tell VS Code to import everything with relative paths (except for Node modules of course)? Removing the baseUrl option…
trusktr
  • 44,284
  • 53
  • 191
  • 263
24
votes
2 answers

Visual Studio Code Advanced Search Wildcard in Files to Include

I am trying to find a line of code to all my files with a specific file name criteria. I am trying to take advantage the Advanced Search of the Visual Studio Code by putting a wildcard in the files to include field of the search. But I wasn't able…
Rich
  • 3,928
  • 4
  • 37
  • 66
24
votes
6 answers

VSCode autocomplete and IntelliSense are not working within backticks

I'm working with Gatsby project. When I type code inside backticks(`), template literals, VSCode doesn't show IntelliSense or autocomplete. I installed a bunch of snippet extensions. But that didn't seem to solve the problem. I'm using Prettier…
Imlastrebor
  • 327
  • 1
  • 4
  • 11
24
votes
2 answers

Set breakpoint in imported python module in vs code

I am trying to set a breakpoint in an external Python module in VS code. I have tried editing the source file and inserting import pdb; pdb.set_trace() where I want the breakpoint. This enters the pdb command line debugger rather than the debugger…
RobinL
  • 11,009
  • 8
  • 48
  • 68
24
votes
4 answers

VSCode inserting "non-breaking spaces" instead of regular spaces

I am trying to figure out why VSCode sometimes decides to randomly insert "non-breaking spaces" U+00A0 instead of regular spaces, and how to stop this from happening? This is a different type of space character which is causing issues, as seen in my…
David Callanan
  • 5,601
  • 7
  • 63
  • 105
24
votes
2 answers

Is there a way to view image width and height in Visual Studio Code?

Is there a way to view image width and height in Visual Studio Code? I didn't find any extension nor any setting. Thanks
migli
  • 2,692
  • 27
  • 32
24
votes
2 answers

Preventing conflict between Prettier (code formatter) and ESLint/TSLint

I am working on an Angular project in VS Code, using the "Prettier" plugin for code formatting, and the ESLint/TSLint plugins for standards enforcement. I know this isn't an "error" but I strongly prefer clean builds and like to remove warnings…
Todd Davis
  • 5,855
  • 10
  • 53
  • 89
24
votes
2 answers

'func' is not recognized as an internal or external command, operable program or batch file

Keep getting the error 'func' is not recognized as an internal or external command, operable program or batch file. when entering func into the cmd command line, when following this tutorial I have installed python (3.7.3) and all the correct…
grand2019
  • 562
  • 2
  • 6
  • 16
24
votes
3 answers

Pylint not running as expected in VScode

When I am running via shell a pylint: $ pylint decorator.py No config file found, using default configuration ************* Module decorator C: 7, 0: Unnecessary parens after 'print' keyword (superfluous-parens) C: 15, 0: Unnecessary parens after…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
24
votes
4 answers

VSCode auto imports for React Native with JavaScript

I know VSCode supports auto import for JavaScript. For some reason, it does not work with React Native. There is even a dedicated section on the VSCode website for this. But it only answers how to fix this problem for Typescript (using…
J. Hesters
  • 13,117
  • 31
  • 133
  • 249
24
votes
2 answers

How to avoid VsCode Prettier to break chain functions in new lines.?

I'm working with VSCode, Prettier and TSLint. When I do have chained functions call with more than 2 calls like let m = moment().startOf("day").subtract(30, "days"); Prettier breaks into let m = moment() .startOf("day") .subtract(30,…
Daniel Santos
  • 14,328
  • 21
  • 91
  • 174
24
votes
1 answer

Is there an example project for monaco-editor with omnisharp on a webpage

In my project, I use C# Roslyn scripts for some automation that can my customer write alone. I compile and run this on runtime. Now I would like to have a web editor for c# with intellisense and spell check. For code completion, I would like also to…
Chape Hans
  • 241
  • 1
  • 5