Questions tagged [visual-studio-code]

Visual Studio Code is an open source text editor available for Linux, OS X, and Windows. It includes support for debugging, embedded Git Control and rich development experiences such as intelligent code completion. It is open source driven by Microsoft, built on Electron like GitHub's Atom.

Visual Studio Code is an open source 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, PHP) and runtimes.

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 VSCode team provides keymaps from popular editors, making the transition to VSCode almost seamless and easy.

Migrating from Vim

Vim Mode - Relatively new, but promising extension implementing Vim features in VSCode

Migrating from Atom

Popular Atom keybindings for Visual Studio Code

Migrating from Sublime Text

Popular Sublime Text keybindings for VS Code.

Migrating from Visual Studio

Popular Visual Studio keybindings for VS Code.

Migrating from IntelliJ IDEA

Popular IntelliJ IDEA keybindings for VS Code.

Using VS Code with particular technologies

Microsoft created a collection of recipes for using VS Code with particular technologies (mostly Web).

Make sure to visit it at Microsoft/vscode-recipes

Related Tags

55 questions
10
votes
4 answers

when clicking open folder the system launches VSCode

Hi everybody I want to start to say thank you for your time! I have a problem and don't really know what to do to solve the problem. When i download something and I click on the arrow in Firefox to see my downloads and then click on the folder next…
DanyCode
  • 271
  • 2
  • 8
6
votes
1 answer

VS Code editor | How to include -x switch for ShellCheck?

Problem description and reproduction In terminal run: shellcheck -x my_script Where my_script sources another (partial) script. I get no error with the -x switch, but if I run it without -x: shellcheck my_script I get notification like this one: .…
Vlastimil Burián
  • 27,586
  • 56
  • 179
  • 309
5
votes
1 answer

ls: bash: printf: `Y': invalid format character in VS Code, not in Terminal

I upgraded to Linux Mint 21 (based on Ubuntu 22), having number of small issues, one of which is in VS Code, not in Terminal (gnome-terminal), running ls alias: bash: printf: `Y': invalid format character While I have defined these aliases: #…
Vlastimil Burián
  • 27,586
  • 56
  • 179
  • 309
5
votes
9 answers

How to put text inside text automatically?

I need to put one text inside another text. 1) I have a file with list of input values: A1 B2 C3 D4 E5 I have a wrapper pattern which should contain the text: $wgSpecialPageLockdown['INPUT_COMES_HERE'] = array('sysop'); For each input value, a…
4
votes
0 answers

How to set the default application to open folders?

I'm really stuck; I want to add Open with vs code to the folders context menu following the same approach as for files by means of the so-called MIME; editing the file ~/.config/mimeapps.list allows me to change default applications for different…
4
votes
1 answer

XAUTHORITY environment value is not a clean path

I am having trouble opening VS Code from my VM running on Ubuntu 16.04. When I try to open it from the terminal, I get the error: WARNING: XAUTHORITY environment value is not a clean path: "/some/path/.Xauthority" cannot open path of the current…
pilars32
  • 41
  • 4
3
votes
3 answers

How to Set up Environment Variables in "launch.json" Configuration When Using GDB Integration in VS Code

I have a setup in launch.json for vscode as follows: { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit:…
Ziqi Fan
  • 217
  • 1
  • 2
  • 9
3
votes
0 answers

Editting Makefile in VS Code

I have many questions about writing makefiles in visual studio (vs) code. The first question is, how to make vs code recognize certain files as makefiles. For instance, when a file's suffix is ".mk", it is recognized as a makefile and the syntax is…
Ziqi Fan
  • 217
  • 1
  • 2
  • 9
3
votes
2 answers

Using Visual Studio Code as EDITOR e.g. with sudoedit

I am using Kubuntu 20.04. When I run sudoedit /etc/fstab, VS Code opens to a blank document and the CLI immediately returns (see details below). If I run export SUDO_EDITOR=nano, the document opens in the nano editor with the contents of /etc/fstab…
kevcoder
  • 445
  • 1
  • 4
  • 12
2
votes
1 answer

How can I make VS Code sign my commits?

I am having trouble getting vscode to commit changes I make to files. I am currently running Fedora 35 Silverblue, so I'm using the flatpak version of VS Code. I have set up my .gitconfig as it should be and ran echo "test" | gpg --clear-sign to get…
telometto
  • 1,825
  • 2
  • 8
  • 29
2
votes
1 answer

When installing VSCode via Flatpak, where is its `code` executable located?

When installing Visual Studio Code via apt or homebrew, the VSCode code executable goes to a standard location that is within PATH, however it seems when installing VSCode via Flatpak, it goes somewhere special. I am trying to find this location…
balupton
  • 461
  • 1
  • 4
  • 16
2
votes
1 answer

SSH config for connecting to host via reverse SSH tunnel

I set up a reverse SSH tunnel to access a node, node1, behind a NAT. I have set up an EC2 instance, myEC2, to act as the intermediary. From my laptop, when I want to access node1, I have to SSH into the EC2 in order to then SSH into the node. The…
2
votes
1 answer

Can I add a shebang to crontab with no ill consequences?

This might be considered abuse by some, but perhaps I (and others) can learn something here. I'm using vscode and recently when editing a crontab file I was annoyed that there was no syntax highlighting1. One immediate workaround is to use shell…
glaux
  • 121
  • 3
1
vote
1 answer

% After output VSCode Integrated Terminal

So I'm running an Arch Linux installation with PowerLevel10k on OhMyZsh. I have the SynthWave84 theme on Visual Studio Code, and in the Integrated Terminal I get a weird % sign after the program's output. Everything's set to build based off of a…
1
vote
1 answer

writing login information to the keychain failed

I'm running Linux Debian v5.4.109-26094-g381754fbb430 on my Chromebook. Everything has been working until now. On Sunday, I logged into VSC on another device using my account, then when I return to my personal PC, it starts acting up. I try signing…
1
2 3 4