Skip to content

Instantly share code, notes, and snippets.

@DanJFletcher
Created February 19, 2017 03:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanJFletcher/b99530be7f694c8f51c9d235df103e5b to your computer and use it in GitHub Desktop.
Save DanJFletcher/b99530be7f694c8f51c9d235df103e5b to your computer and use it in GitHub Desktop.
My VS Code settings
// Place your settings in this file to overwrite the default settings
{
// Editor
// Columns at which to show vertical rulers
"editor.rulers": [80],
// Controls after how many characters the editor will wrap to the next line. Setting this to 0 turns on viewport width wrapping (word wrapping). Setting this to -1 forces the editor to never wrap.
"editor.wrappingColumn": 0,
// Zoom the font of the editor when using mouse wheel and holding Ctrl
"editor.mouseWheelZoom": true,
// Controls how the editor should render whitespace characters, posibilties are 'none', 'boundary', and 'all'. The 'boundary' option does not render single spaces between words.
"editor.renderWhitespace": "boundary",
// Controls whether the editor should render indent guides
"editor.renderIndentGuides": true,
// Controls if suggestions should be accepted 'Enter' - in addition to 'Tab'. Helps to avoid ambiguity between inserting new lines or accepting suggestions.
"editor.acceptSuggestionOnEnter": false,
// Files
// When enabled, will trim trailing whitespace when you save a file.
"files.trimTrailingWhitespace": false,
// Configure file associations to languages (e.g. "*.extension": "html"). These have precedence over the default associations of the languages installed.
"files.associations": {
"*.tpl": "php"
},
// HTML-Hint configuration
// The htmlhint options object to provide args to the htmlhint command.
"htmlhint.options": {
// Standard
"tagname-lowercase": true,
"attr-lowercase": true,
"attr-value-double-quotes": true,
"doctype-first": true,
"tag-pair": true,
"spec-char-escape": true,
"id-unique": true,
"src-not-empty": true,
"attr-no-duplication": true,
"title-require": true,
"tag-self-close": true,
// Accessiblity
"alt-require": true,
// Specification
"doctype-html5": true,
"id-class-value": "dash",
"style-disabled": true,
"inline-style-disabled": true,
"inline-script-disabled": true,
"space-tab-mixed-disabled": true,
"id-class-ad-disabled": true,
"href-abs-or-rel": true,
"attr-unsafe-chars": true
},
// PHP
// Points to the php executable.
"php.validate.executablePath": "C:/php/php.exe",
"php.executablePath": "C:/php/php.exe"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment