Questions tagged [vscode-settings]

Visual Studio Code User or Workspace Settings provide a way of override default settings in order to customise the development experience.

Questions about the Visual Studio Code (sometimes abbreviated "VS Code") and how to customise the IDE's settings.

3793 questions
1020
votes
20 answers

How can I customize the tab-to-space conversion factor?

How do I customize the tab-to-space conversion factor when using Visual Studio Code? For instance, right now in HTML it appears to produce two spaces per press of TAB, but in TypeScript it produces 4.
J. Abrahamson
  • 64,404
  • 8
  • 128
  • 172
1011
votes
7 answers

Vertical rulers in Visual Studio Code

How can vertical rulers (note the plural) be configured in Visual Studio Code? In Sublime Text 2 I can do "rulers": [72, 80, 100, 120] How does this work in Visual Studio? "editor.ruler": 80 produces only one vertical ruler.
nalply
  • 20,652
  • 12
  • 75
  • 93
748
votes
8 answers

How do I hide certain files from the sidebar in Visual Studio Code?

Using Microsoft's Visual Studio Code, how do I hide certain files and file patterns from appearing in the sidebar? I want to hide .meta and .git style files
Chris
  • 43,908
  • 26
  • 122
  • 165
701
votes
7 answers

Remove trailing spaces automatically or with a shortcut

Is there a way to remove trailing spaces in Visual Studio Code (automatically or with a shortcut)? I've been looking for this in the command palette and in the editor settings, but I cannot find what I am looking for.
schankam
  • 8,188
  • 2
  • 12
  • 25
510
votes
13 answers

Show whitespace characters in Visual Studio Code

Is it possible to show whitespace characters, like the space character, in Visual Studio Code? There doesn't appear to be an option for it in the settings.json (though it is an option in Atom.io), and I haven't been able to display whitespace…
446
votes
19 answers

Is there a quick change tabs function in Visual Studio Code?

The current function of giving me a dropdown option of which tab to choose is just so annoying. Is there a possibility to remove it so the tabs would work like in some modern web browser.
yodalr
  • 6,595
  • 8
  • 27
  • 42
412
votes
10 answers

How to make VS Code to treat other file extensions as certain language?

Or is there a way to switch the current file's language to use syntax highlight feature? For example, *.jsx actually uses JavaScript but VS Code doesn't recognize it.
John Deev
  • 5,471
  • 3
  • 10
  • 10
407
votes
14 answers

Removing the file preview on the right side of the editor in VS Code

This beauty appeared after a recent update, and it is very distracting to me. I searched through the menus, but didn't find any setting to remove it. Is there any way to banish it from the editor?
eugenekr
  • 4,698
  • 3
  • 15
  • 20
347
votes
22 answers

How do I use Bash on Windows from the Visual Studio Code integrated terminal?

Visual Studio Code on Windows uses PowerShell by default as the integrated terminal. If you want to use Bash from Visual Studio Code, what steps should be followed?
Mahade Walid
  • 7,744
  • 5
  • 14
  • 24
343
votes
16 answers

How do I move the panel in Visual Studio Code to the right side?

It's at the bottom by default. For example in the following image ,panel(Section D) is at the bottom, instead I want it to move to the rightside i.e., in the area where README.md editior shown in Editor Groups(Section C). Image Credits:…
1c.
  • 3,615
  • 2
  • 11
  • 7
332
votes
12 answers

Hide .js.map files in Visual Studio Code

I am working on a typescript project in Visual Studio code and would like to hide the .js.map (and maybe even the .js) files from appearing in the file explorer. Is it possible to display only the .ts files in the file explorer?
Tyler
  • 15,509
  • 9
  • 45
  • 81
309
votes
22 answers

How to change environment's font size?

Is there a way to change the environment font size in Visual Studio Code? Stuff like IntelliSense box, debug panel, file names, etc. I know how to change the editor's font size but I cannot figure out how to change the environment font size. So I…
Sul Aga
  • 4,663
  • 4
  • 21
  • 34
261
votes
7 answers

How do you format code on save in VS Code

I would like to automatically format TypeScript code using the build-in formatter when I save a file in Visual Studio Code. I'm aware of the following options, but none of them is good enough: Format manually Shift + Alt + F Format on type…
Tomas Nikodym
  • 8,782
  • 3
  • 15
  • 17
199
votes
12 answers

How to disable or hide scrollbar/minimap?

I can't find any option, setting, or keyboard shortcut that disables or hides that annoying scrollbar. I just don't find it useful and it's distracting. Can't just edit the editor's CSS like Atom, either.
user41997
  • 2,281
  • 2
  • 10
  • 12
171
votes
4 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 restart word, so normally it should mean something if you emphasize an appellation. Is there some…
Green
  • 21,978
  • 45
  • 138
  • 223
1
2 3
99 100