Skip to content

Instantly share code, notes, and snippets.

@rsgranne
Last active March 23, 2026 08:34
Show Gist options
  • Select an option

  • Save rsgranne/98c3040953a83d8d3cec41b8c058a0ae to your computer and use it in GitHub Desktop.

Select an option

Save rsgranne/98c3040953a83d8d3cec41b8c058a0ae to your computer and use it in GitHub Desktop.
VSCode settings for Scott Granneman’s Web Dev courses
// Place your settings in this file to overwrite the default settings
{
// Disable AI
"chat.disableAIFeatures": true,
// Color Picker
"colorHelper.formatsOrder": [
"hsl",
"hex",
"named"
],
"css.format.spaceAroundSelectorSeparator": true,
"diffEditor.ignoreTrimWhitespace": false,
"editor.acceptSuggestionOnEnter": "on",
"editor.bracketPairColorization.enabled": true,
"editor.columnSelection": false,
"editor.cursorSurroundingLines": 3,
"editor.detectIndentation": false,
"editor.fontFamily": "Source Code Pro, Menlo, Consolas, Fira Mono, Courier, monospace",
"editor.fontSize": 11,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.guides.bracketPairs": true,
"editor.hover.delay": 2000,
"editor.inlineSuggest.enabled": true,
"editor.lineHeight": 0,
"editor.linkedEditing": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.padding.bottom": 25,
"editor.padding.top": 25,
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
"editor.renderWhitespace": "selection",
"editor.snippetSuggestions": "bottom",
"editor.stickyScroll.enabled": false,
"editor.tabSize": 2,
"editor.wordWrap": "on",
"editor.wrappingIndent": "indent",
"emmet.preferences": {
"format.forceIndentationForTags": [
"address",
"article",
"aside",
"audio",
"blockquote",
"body",
"canvas",
"div",
"dl",
"fieldset",
"figcaption",
"figure",
"footer",
"form",
"head",
"header",
"iframe",
"main",
"map",
"nav",
"object",
"ol",
"p",
"pre",
"script",
"section",
"style",
"table",
"tbody",
"td",
"tfoot",
"th",
"thead",
"tr",
"ul",
"video"
]
},
"emmet.showSuggestionsAsSnippets": true,
"explorer.compactFolders": false,
"extensions.ignoreRecommendations": true,
"files.exclude": {
"**/._*": true
},
"files.insertFinalNewline": true,
"html-css-class-completion.enableEmmetSupport": true,
"html.format.extraLiners": "body",
"html.format.indentInnerHtml": true,
"html.format.unformatted": "b,em,i,pre,span,strong,wbr",
"html.format.wrapLineLength": 0,
"htmlhint.options": {
//HTML Hint options: https://htmlhint.com/docs/user-guide/list-rules
"alt-require": true,
"attr-lowercase": [
"allowReorder",
"attributeName",
"attributeType",
"autoReverse",
"baseFrequency",
"baseProfile",
"calcMode",
"clipPath",
"clipPathUnits",
"contentScriptType",
"contentStyleType",
"diffuseConstant",
"edgeMode",
"externalResourcesRequired",
"filterRes",
"filterUnits",
"glyphRef",
"gradientTransform",
"gradientUnits",
"kernelMatrix",
"kernelUnitLength",
"keyPoints",
"keySplines",
"keyTimes",
"lengthAdjust",
"limitingConeAngle",
"markerHeight",
"markerUnits",
"markerWidth",
"maskContentUnits",
"maskUnits",
"numOctaves",
"onBlur",
"onChange",
"onClick",
"onFocus",
"onKeyUp",
"onLoad",
"pathLength",
"patternContentUnits",
"patternTransform",
"patternUnits",
"pointsAtX",
"pointsAtY",
"pointsAtZ",
"preserveAlpha",
"preserveAspectRatio",
"primitiveUnits",
"refX",
"refY",
"repeatCount",
"repeatDur",
"requiredExtensions",
"requiredFeatures",
"specularConstant",
"specularExponent",
"spreadMethod",
"startOffset",
"stdDeviation",
"stitchTiles",
"surfaceScale",
"systemLanguage",
"tableValues",
"targetX",
"targetY",
"textLength",
"viewBox",
"viewTarget",
"xChannelSelector",
"yChannelSelector",
"zoomAndPan"
],
"attr-no-duplication": true,
"attr-no-unnecessary-whitespace": true,
"attr-value-double-quotes": true,
"attr-whitespace": true,
"doctype-first": true,
"empty-tag-not-self-closed": true,
"html-lang-require": true,
"id-unique": true,
"inline-style-disabled": true,
"src-not-empty": true,
"tag-pair": true,
"tagname-lowercase": [
"animateMotion",
"animateTransform",
"clipPath",
"feBlend",
"feColorMatrix",
"feComponentTransfer",
"feComposite",
"feConvolveMatrix",
"feDiffuseLighting",
"feDisplacementMap",
"feDistantLight",
"feDropShadow",
"feFlood",
"feFuncA",
"feFuncB",
"feFuncG",
"feFuncR",
"feGaussianBlur",
"feImage",
"feMerge",
"feMergeNode",
"feMorphology",
"feOffset",
"fePointLight",
"feSpecularLighting",
"feSpotLight",
"feTile",
"feTurbulence",
"foreignObject",
"linearGradient",
"radialGradient",
"textPath"
],
"tagname-specialchars": true,
"title-require": true
},
"http.systemCertificates": false,
// Live Preview
"livePreview.openPreviewTarget": "External Browser",
"livePreview.autoRefreshPreview": "On Changes to Saved Files",
// Live Sass Compiler
"liveSassCompile.settings.generateMap": false,
// Markdown-only settings
"[markdown]": {
"editor.tabSize": 4
},
// Placeholder Images
"placeholderImages.quoteStyle": "double",
"window.restoreWindows": "preserve",
"window.zoomLevel": 1.25,
"workbench.editor.enablePreview": false,
"workbench.editor.enablePreviewFromQuickOpen": false,
"workbench.editor.highlightModifiedTabs": true,
"workbench.editor.tabSizing": "shrink",
// SVG should open as code, not preview
"workbench.editorAssociations": {
"*.svg": "default"
},
"workbench.settings.openDefaultSettings": true,
"workbench.settings.useSplitJSON": true,
"workbench.startupEditor": "none"
}
@rsgranne

Copy link
Copy Markdown
Author

Added pre to html.format.unformatted. Duh!

@rsgranne

Copy link
Copy Markdown
Author

Added spaces to font names in editor.fontFamily

@rsgranne

rsgranne commented Jan 9, 2025

Copy link
Copy Markdown
Author

Removed "breadcrumbs.enabled": true, as it is the default.

@rsgranne

Copy link
Copy Markdown
Author

Had to add this because VS Code 1.97 (Jan. 2025) stupidly changed the default for SVG files from showing the code to showing a preview:

// SVG should open as code, not preview
"workbench.editorAssociations": {
  "*.svg": "default"
},

@rsgranne

Copy link
Copy Markdown
Author

Changed title to “VSCode settings for Scott Granneman’s Web Dev courses”

@rsgranne

Copy link
Copy Markdown
Author

Added "chat.disableAIFeatures": true, to disable the built-in Co-Pilot feature. Students can still use other AI tools that are good using extensions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment