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
159
votes
5 answers

How to add more indentation in the explorer file tree structure?

How to add more indentation in a file tree structure? It has a little bit indentation I want to increase more just like NetBeans. check the image
Akshay Kumar
  • 1,904
  • 2
  • 6
  • 14
156
votes
8 answers

How to disable codelens in VS code?

I've searched but didn't find any info on how to disable references (or the codelens completely) in the Visual Studio Code, they're quite useless and annoying for me.
Phoera
  • 2,336
  • 2
  • 11
  • 20
156
votes
3 answers

Change the encoding of a file in Visual Studio Code

Is there any way to change the encoding of a file? For example UTF-8 to ISO 8859-1? Setting Example Sublime Text: "default_encoding": "UTF-8"
Fernando Tholl
  • 1,997
  • 2
  • 12
  • 12
154
votes
5 answers

How to exclude file extensions and languages from "format on save" in VSCode?

Currently in VSCode settings you can configure format on save as following: "editor.formatOnSave": true I want to exclude some file extensions, for example only format JavaScript but not HTML files.
gabrielAnzaldo
  • 1,916
  • 4
  • 14
  • 18
154
votes
6 answers

Automatically hard wrap lines at column in VSCode

How can I automatically hard wrap lines in VSCode? By that I mean if a line reaches a specified column, automatically insert a newline at the word boundary closest to that column without going over. Vim has a setting called textwidth that does this…
Brian Schlenker
  • 3,694
  • 4
  • 23
  • 38
150
votes
9 answers

How to disable preview file with single-click in vs code?

I would much rather double-click to open file, and prevent single-click previews. How do we do that in vs code?
Grateful
  • 7,657
  • 7
  • 34
  • 59
147
votes
10 answers

Disable tooltip hint in Visual Studio Code

How can I disable the default tooltip hint message in VSCode? It's annoying sometimes.
Sajad
  • 3,684
  • 7
  • 30
  • 46
143
votes
24 answers

VSCode single to double quote automatic replace

When I execute a Format Document command on a Vue Component.vue file VSCode replace all single quoted string with double quoted string. In my specific case this rule conflicts with electron-vue lint configuration that require singlequote. I don't…
attdona
  • 12,023
  • 5
  • 36
  • 48
134
votes
9 answers

Prevent autocomplete in Visual Studio Code

I'm using the new Visual Studio Code, which is clearly not ready for prime time yet, but I'm hoping to resolve a problem I'm having. In a SQL file, any time you type case, it automatically adds end, as if you were building a case block. Even if…
Joe Enos
  • 36,707
  • 11
  • 72
  • 128
131
votes
12 answers

How to reset settings in Visual Studio Code?

It's a simple thing and I was pretty sure it's well described, but surprisingly it is not so obvious. Here I've found a detailed description of settings file. As it states it should be setting.json file located %APPDATA%\Code\User\settings.json, but…
Landeeyo
  • 13,299
  • 14
  • 54
  • 92
131
votes
2 answers

How to set per-filetype tab size?

How to set tab size is already answered here. But how to have different settings for different file types? E.g. I want the tab size for HTMLs to be 2, but for other files to be 4.
Ron
  • 5,778
  • 9
  • 33
  • 39
121
votes
7 answers

Color theme for VS Code integrated terminal

Can we change color settings of VS Code Integrated Terminal? Mine looks dull with just white.
John Jai
  • 2,363
  • 4
  • 20
  • 29
109
votes
5 answers

Settings to copy paste with correct indentation in Visual Studio Code

When I copy and paste a piece of code using Visual Studio Code, after pressing enter to create a new line, the following happens: It seems to keep the indentation created by the new line, adding the previous information from the copied snippet on…
Tiago
  • 3,327
  • 11
  • 37
  • 63
106
votes
2 answers

How to open the lightbulb via shortcut?

Some languages support code actions which display a lightbulb providing quick fixes for a warning/error (See https://code.visualstudio.com/docs/editor/editingevolved#_code-action for more information). I like this feature but I don't like to click…
Wosi
  • 33,560
  • 14
  • 67
  • 75
101
votes
4 answers

Different theme per window in Visual Studio Code

Is it possible to open 2 Visual Studio Code sessions with different themes? Maybe like this: Window 1: light theme → live system Window 2: dark theme → development system
user2470323
  • 1,019
  • 2
  • 7
  • 3