Questions tagged [vscode-extensions]

Use this tag for questions about the Visual Studio Code Extension API and extension development. Questions only about extension usage should use the [visual-studio-code] tag instead.

Questions about the Visual Studio Code (VSCode) Extension API and extension development. Questions only about extension usage should use the [visual-studio-code] tag instead.

If you have a question about extension development that isn't a good fit for the Stack Exchange model, use the VS Code Dev Community Slack channel where extension developers help each other out and you can ask questions and find support.

4227 questions
38
votes
4 answers

Customizing syntax highlighting in Visual Studio Code

I'm currently trying to write an extension for a new file type (ANTLR) and wonder how to change the colors used for syntax highlighting in Visual Studio Code. To me it looks as if that is not defined in the extension, but somewhere else. There is no…
Mike Lischke
  • 48,925
  • 16
  • 119
  • 181
37
votes
6 answers

Exclude folder from mypy checking

I would like to exclude a folder from the mypy checks. Looking at the documentation I tried the following configuration in my mypy.ini configuration file [mypy] python_version = 3.8 exclude '/venv/' with no luck. Yes I want to exclude my…
vianmixt
  • 703
  • 1
  • 6
  • 17
34
votes
2 answers

In which path does Visual Studio Code install extensions?

After installing an extension in Visual Studio Code, where do the files go?
nickf
  • 537,072
  • 198
  • 649
  • 721
32
votes
13 answers

VS code CSS class selector not found with angular and bootstrap 5 beta

I'm using bootstrap 5 with angular and I add style and script to angular.json but the problem in VS Code it does not recognize the bootstrap classes.
32
votes
6 answers

vscode search for a text only in git changes

Before to publish branch sometimes I want to search for a specific keyword to ensure I have fixed it correctly everywhere. The problem is, I want to search it only in changes not for a whole project. Is it possible?
b00sted 'snail'
  • 354
  • 1
  • 13
  • 27
31
votes
1 answer

How can I get colored output in VS Code output window?

This is really a two part question, but they are in the same vein, so I will ask in one post. When I flip through various colors, I see that they also have the ability to change the color of the Output window. Which VS Code setting can I use to…
securisec
  • 3,435
  • 6
  • 36
  • 63
31
votes
5 answers

VS Code extension - get full path

I am writing a plugin for VS Code and I need to know the path of the file which is calling the extension, either if it was called from the editor context menu or explorer context menu or the user simply typed the extension command. function…
30
votes
5 answers

How to share extensions and settings with VS Code stable and insider build?

I have installed both the versions of VS Code stable and insiders build on my machine. But the problem is that insiders are not showing all the settings and extensions I am using in the stable version. So, how to share all the stuff with the…
Yashu Mittal
  • 1,478
  • 3
  • 14
  • 32
28
votes
1 answer

Is it possible to access mouse events in a Visual Studio Code extension

I would like to write a simple extension for Visual Studio Code to allow basic drag and drop copy/paste functionality but I can't find any way to be notified of mouse events. Have I overlooked something obvious or has the editor intentionally been…
Greg Harley
  • 433
  • 3
  • 10
27
votes
2 answers

How can I implement my own code outline layout in vscode?

I'm looking for an extension in Visual Studio Code (vscode) where I can define my custom code outline. Essentially, listing all my functions/definitions in a tree-like manner. Let's say I'm using a simple language that looks as follows: begin foo1…
Yuli Hua
  • 561
  • 1
  • 4
  • 10
27
votes
1 answer

How to customize the color of custom syntax tokens in VSCode extension

TLDR; How can I have an extension colorize the syntax the extension is defining without it actually being a color theme the user has to enable? I'm attempting to port this Sublime Text plugin (ToDone) to VSCode. It creates a grammar for todo lists…
tiffon
  • 5,040
  • 25
  • 34
27
votes
2 answers

VS Code customize file explorer window color theme

Does anyone know how to customize the file explorer window color theme in VS Code? Also how to customize the color of line numbers? For example, when using the built-in High Contrast color theme, I can see that the file explorer and line number…
user3616544
  • 1,023
  • 1
  • 9
  • 31
26
votes
4 answers

VS Code execute current line or selection to in the integrated console

This old Emacs user, who is used to elpy, is attempting to move onto VSCode with Scala & more specifically Ammonite repl. I used Ctrl+' to open the integrated terminal & all I have to do is type amm on the bash shell (ubuntu) to open the repl;…
user6273920
  • 713
  • 1
  • 7
  • 16
26
votes
4 answers

VS Code extension Api to get the Range of the whole text of a document?

I haven't found a good way to do it. My current approach is to select all first: vscode.commands.executeCommand("editor.action.selectAll").then(() =>{ textEditor.edit(editBuilder => editBuilder.replace(textEditor.selection, code)); …
Jeremy Meng
  • 420
  • 1
  • 4
  • 12
26
votes
5 answers

"No extensions found" when running Visual Studio Code from source

When I try to install any extension in Visual Studio Code (i.e., by pressing Ctrl+P and then running ext install RustyCode), I get a message that No extensions found. However, this only happens when I run VS Code directly from source repository.…
Vikrant Chaudhary
  • 11,089
  • 10
  • 53
  • 68