blob: 67e1b97f21cbaaa82cc64a260a018db0d13c4573 [file] [log] [blame]
// Suggested vscode default settings for simplifying initial setup. These
// settings are hoped to be convenient and helpful for those beginning to use
// vscode with Chrome. Please modify and change as necessary.
// All settings are optional, but some more "optional" settings at the end
// are disabled by default. Feel free to enable them.
// Default tab size of 2, for consistency with internal codebase.
"editor.tabSize": 2,
// Do not figure out tab size from opening a file.
"editor.detectIndentation": false,
// Add a line at 80 characters.
"editor.rulers": [80],
// Forces LF instead of "auto" which uses CRLF on Windows.
"files.eol": "\n",
// Trim tailing whitespace on save.
"files.trimTrailingWhitespace": true,
// Insert trimmed final new line.
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.associations": {
// Adds xml syntax highlighting for grd files.
"*.grd" : "xml",
// Optional: .gn and .gni are not JavaScript, but at least it gives some
// approximate syntax highlighting. Ignore the linter warnings!
// There's an extension for these files, excluding the linter headaches.
"*.gni" : "javascript",
"*.gn" : "javascript"
"files.exclude": {
// Ignore build output folders.
"out*/**": true
"files.watcherExclude": {
// Don't watch out*/ and third_party/ for changes to fix an issue
// where vscode doesn't notice that files have changed.
// There is currently another issue that requires a leading **/ for
// watcherExlude. Beware that this pattern might affect other out* folders
// like src/cc/output/.
"**/out*/**": true,
"**/third_party/**": true
// Wider author column for annotator extension.
"annotator.annotationColumnWidth": "24em",
// C++ clang format settings. |workspaceFolder| is assumed to be chromium/src.
"C_Cpp.clang_format_path": "${workspaceFolder}/third_party/depot_tools/clang-format",
"C_Cpp.clang_format_sortIncludes": true,
"editor.formatOnSave": true,
// YouCompleteMe settings. |workspaceFolder| is assumed to be chromium/src.
"ycmd.path": "<full_path_to_your_home>/.ycmd", // Please replace this path
"ycmd.global_extra_config": "${workspaceFolder}/tools/vim/",
"ycmd.confirm_extra_conf": false,
// Optional: Only format modified lines instead of the whole file.
// "editor.formatOnSaveMode": "modifications",
// Optional: Highlight current line at the left of the editor.
// "editor.renderLineHighlight": "gutter",
// Optional: Don't automatically add closing brackets. It gets in the way.
// "editor.autoClosingBrackets": "never",
// Optional: Enable a tiny 30k feet view of your doc.
// "editor.minimap.enabled": true,
// "editor.minimap.maxColumn": 80,
// "editor.minimap.renderCharacters": false,
// Optional: Don't continuously fetch remote changes.
//"git.autofetch": false,
// Optional: Do not open files in 'preview' mode. Opening a new file in can
// replace an existing one in preview mode, which can be confusing.
//"workbench.editor.enablePreview": false,
// Optional: Same for files opened from quick open (Ctrl+P).
//"workbench.editor.enablePreviewFromQuickOpen": false,