Search notes:

Visual Studio Code: settings.json

Location of settings.json

The location of settings.json in the User directory of the user data directory.
It is also possible to store settings.json in a .vscode directory. In that case, the settings apply to the folder where this .vscode directory is located.

Editing settings.json

The settings can be edited
settings.json can be edited in one of two views which is specified using the (setting) option workbench.settings.editor. If this value is "ui", the settings are displayed using a specialized GUI, if it is "json", an editor is opened that displays the «raw» JSON.
When settings are opened, it's possible to switch between these views by clicking the following red-framed icon:

Settings sync

Settings sync allows to use the same settings (including keybindings and extensions) across multiple machines.
As of 2021-05-01, settings sync is in preview.

Simple sample

{

"breadcrumbs.enabled"                       :  false       ,

"diffEditor.ignoreTrimWhitespace"           :  false       ,  // Ignore changes in leading and trailing whitespace when diffing files

"editor.autoClosingBrackets"                : "never"      ,  // Don't add closing brackets after inserting an opening one
"editor.autoClosingDelete"                  : "never"      ,
"editor.autoClosingOvertype"                : "never"      ,
"editor.autoClosingQuotes"                  : "never"      ,  // Don't automatcially close an opened quote

"editor.autoIndent"                         : "full"       ,  // Other possible values: none, keep, brackets, advanced, full

"editor.cursorSmoothCaretAnimation"         : "off"        ,  // off is the default

"editor.fontSize"                           :  11          ,
"editor.fontWeight"                         : "normal"     ,
"editor.fontFamily"                         : "Consolas,   'Courier New', monospace",
"editor.fontLigatures"                      :  true        ,  // Does this have a noticeable effect?

"editor.lineNumbers"                        : "on"         ,

"editor.renderWhitespace"                   : "trailing"   , // Show whitespace before end of line (other values: none, boundary, selection, all). Compare with "files.trimFinalNewlines"

"editor.wordSeparators"                     : "`~!@#$%^&*(),=+[{]}\\|;:'\"-.<>/?",

"editor.tabSize"                            :  4           ,

"extensions.ignoreRecommendations"          :  true        , // Silence extension recommendation
"extensions.showRecommndationsOnlyOnDemand" :  true        , // Remove the RECOMMENDED section
 
     // Related to folding 
"editor.showFoldingControls"                : "always"     ,
"editor.foldingStrategy"                    : "auto"       , // or indentation

"files.associations"                        : {              // Set explicit file types for given file extensions and name patterns
    "*.wsf": "vb"   ,                                        // Map wsf and cls to 'Visual Basic'.
    "*.cls": "vb"                                            // Find language identifiers (such as 'vb') at https://code.visualstudio.com/docs/languages/identifiers
},

"files.autoSave"                            : "off"        ,

"files.autoGuessEncoding"                   :  true        , // default is false!

"files.encoding"                            : "windows1252", // or utf8 or ...

"files.hotExit"                             : "off"        , // default is onExit

"files.insertFinalNewline"                  :  false       ,

"files.restoreUndoStack"                    :  true        , // When file is reopened

"files.saveConflictResolution"              : "askUser"    ,

"files.trimFinalNewlines"                   :  false       , // Compare with "editor.renderWhitespace = trailing"

"search.smartCase"                          :  false       , // Applies to the search window only, not «regular» ctrlf- searching:
                                                             // Search case-insensitively when pattern is all lowercase, case-sensitively otherwise

"security.workspace.trust.untrustedFiles"   : "open"       , // prompt   : Ask how untrated files are hanled in a workspace. (default).
                                                             // open     : Do not prompt when files outside of trusted workspaces are opened.
                                                             // newWindow: Always Create new windows in restricted mode

"window.newWindowDimensions"                : "maximized"  , // or default (center of screen), inherit, offset, fullscreen

"window.title"                              : "${dirty}${activeEditorLong}",   // Use activeEditorLong rather than "breadcrumbs.enabled"

"window.zoomLevel"                          :  0           ,

"workbench.colorTheme"                      : "Quiet Light",

"workbench.statusBar.visible"               :  true        ,

"workbench.startupEditor"                   : "none"       , // Do not show the welcome page when VS code is started

"workbench.settings.editor"                 : "json"       , // Make File -> Preferences -> Settings open THIS settings.json (rather than edit in a GUI editor)
                                                             // Set value to "ui" to edit settings using the GUI
"vim.foldfix"                               :  true        ,

"vim.digraphs"                              : {"oo": ["Bullet Point", [8226]],
                                               "<<": ["laquo"       , [ 369]],
                                               ">>": ["raquo"       , [ 391]],
                                              },
"vim.insertModeKeyBindings"                 : [{ "before"  : ["j", "j"] ,
                                                 "after"   : ["<Esc>" ]},
                                               { "before"  : ["j", "w"] ,
                                                 "commands": ["workbench.action.files.save"],
                                                 "after"   : ["<ESC>" ],
                                               }],

"vim.easymotion"                            :  true,

"explicitFolding.rules"                     : {
 //
 //  Settings for extension Explicit Folding
 //
    "*": {
            "begin": "{{{",
            "end"  : "}}}"
    },
    "vb": [
        {
            "begin": "' {",
            "end"  : "' }"
        },
        {
            "begin": "{{{",
            "end"  : "}}}"
        }
    ],
    "sql": [
        {
            "begin": "-- {",
            "end"  : "-- }"
        },
        {
            "begin": "{ */",
            "end"  : "} */"
        }
    ]
//  ---------------------------------------
//      2021-07-28: why does this not work:
//
//  "hlg": [
//      {
//          "begin": " {",
//          "end"  : " }"
//      }
//  ]
//  ---------------------------------------

}

/*
"[plsql]": {
     "folding": {
        "markers": {
          "start": "{{{",
          "end":   "}}}"
        }
     }
}
*/
}

TODO

The setting "terminal.integrated.scrollback": 2000 does not seem to control the number of stored lines that can be logged with the console.log() statement.

See also

keybindings.json

Index