Skip to content

Instantly share code, notes, and snippets.

@lundeen-bryan
Created March 1, 2024 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lundeen-bryan/1c97ddc90c857d89bb2d0004e603d7f3 to your computer and use it in GitHub Desktop.
Save lundeen-bryan/1c97ddc90c857d89bb2d0004e603d7f3 to your computer and use it in GitHub Desktop.
len_home_settings.json
{
// use "Settings Sync: Show Synced Data" in the palette.
// https://code.visualstudio.com/docs/getstarted/settings
// Use the compact view of the toolbar
"window.menuBarVisibility": "compact",
"window.zoomLevel": 1,
// Set this file to be machine specific: home machine
"sync.machineSpecific": true,
// Vim settings section
"vim.vimrc.path": "$HOME/.vim/_vimrc",
"vim.vimrc.enable": true,
"vim.easymotion": true,
"vim.smartRelativeLine": true,
"vim.leader": ",",
"vim.useSystemClipboard": true,
"vim.textwidth": 120,
"vim.searchMatchColor": "#ffff80",
"vim.searchMatchTextColor": "#008040",
"vim.highlightedyank.enable": true,
"vim.highlightedyank.duration": 1000,
// // Status bar colors
// "vim.statusBarColorControl": true,
// "vim.statusBarColors.normal": ["#8FBCBB", "#434C5E"],
// "vim.statusBarColors.insert": "#BF616A",
// "vim.statusBarColors.visual": "#B48EAD",
// "vim.statusBarColors.visualline": "#B48EAD",
// "vim.statusBarColors.visualblock": "#A3BE8C",
// "vim.statusBarColors.replace": "#D08770",
// "vim.statusBarColors.commandlineinprogress": "#007ACC",
// "vim.statusBarColors.searchinprogressmode": "#007ACC",
// "vim.statusBarColors.easymotionmode": "#007ACC",
// "vim.statusBarColors.easymotioninputmode": "#007ACC",
// "vim.statusBarColors.surroundinputmode": "#007ACC",
// Insert mode
"vim.insertModeKeyBindings": [
{
"before": ["j", "k"],
"after": ["<Esc>"]
},
{
"before": ["<C-l>"],
"after": ["<C-o>", "1", "l"]
},
{
"before": ["<C-l>"],
"after": ["<C-o>", "1", "l"]
}
],
// Switch to insert from visual mode
"vim.visualModeKeyBindings": [
{
"before": ["i"],
"after": ["<Esc>", "i"]
},
{
//tab back and stay in visual mode
"before": [">"],
"after": [">", "g", "v"]
},
{
//tab forward and stay in visual mode
"before": ["<"],
"after": ["<", "g", "v"]
}
],
"vim.normalModeKeyBindings": [
{
// (split windows only) switch to window right same as ctrl+up
"before": ["<C-l>"],
"commands": ["workbench.action.navigateRight"]
},
{
// (split windows only) switch to window left same as ctrl+pgdown
"before": ["<C-h>"],
"commands": ["workbench.action.navigateLeft"]
},
{
// save and exit vscode
"before": ["Z", "Z"],
"commands": [":wq"]
},
{
// quit vscode w/o saving
"before": ["Z", "Q"],
"commands": [":q!"]
},
{
// save with ,w
"before": [",", "w"],
"commands": [":w"]
},
{
// bookmark word
"before": [",", "m"],
"commands": ["bookmarks.toggle"]
},
{
// show all bookmarks
"before": [",", "b"],
"commands": ["bookmarks.list"]
},
{
// focus on terminal
"before": ["<leader>", "<leader>", "t"],
"commands": ["workbench.action.terminal.focus"]
},
{
// move terminal panal to right
"before": ["<leader>", "<leader>", "r"],
"commands": ["workbench.action.positionPanelRight"]
},
{
// put selection in print statement
"before": ["<leader>", "<leader>", "p"],
"commands": ["print-it.PrintIt"]
},
{
// run code-runner
"before": ["<leader>", "<leader>", "e"],
"commands": ["code-runner.run"]
}
],
// Workbench settings
"workbench.editor.enablePreview": true,
"workbench.editor.enablePreviewFromQuickOpen": true,
// "workbench.colorCustomizations": {
// "badge.background": "#81CA91",
// "statusBar.background": "#B48EAD",
// "statusBar.noFolderBackground": "#B48EAD",
// "statusBar.debuggingBackground": "#B48EAD",
// "statusBar.foreground": "#434C5E",
// "statusBar.debuggingForeground": "#434C5E"
// },
// Editor settings
"editor.semanticTokenColorCustomizations": {
"enabled": true,
"rules": {
"attribute.vb": {
"foreground": "#ff69b4",
"fontStyle": "bold"
}
}
},
"editor.tokenColorCustomizations": {
// The settings in this section override the theme
// "comments": "#87ff7c",
// "numbers": "#2247EB",
// "comments": "#6D929C",
// "functions": "#0D7C28",
"[vb]": {
"textMateRules": [
{
"scope": "entity.name.tag.attribute.vb",
"name": "The vba keyword 'Attribute'",
"settings": {
"foreground": "#ff69b4",
"fontStyle": "bold"
}
},
]
},
},
"editor.accessibilitySupport": "off",
"editor.fontSize": 10, // Candara requires big font
"editor.quickSuggestions": {
"comments": "inline"
},
"editor.folding": true,
"editor.foldingHighlight": true,
"editor.snippetSuggestions": "top",
"editor.formatOnPaste": false,
"editor.insertSpaces": false,
"editor.autoSurround": "languageDefined",
"editor.detectIndentation": true,
"editor.autoIndent": "full",
"editor.comments.insertSpace": true,
"editor.suggestSelection": "first",
"editor.acceptSuggestionOnEnter": "on", //no map=false
"editor.stablePeek": true,
"editor.fontFamily": "'Fira Code', 'Lucida Console', 'Courier New', 'Consolas', 'Anonymous Pro', 'monospace'",
"editor.fontLigatures": true,
"editor.cursorBlinking": "solid",
"editor.cursorWidth": 1,
"editor.unusualLineTerminators": "prompt",
"editor.wordWrapColumn": 72,
"editor.wordWrap": "off",
"editor.tabSize": 2,
"editor.lightbulb.enabled": false,
"editor.renderWhitespace": "all",
"editor.lineHeight": 22,
"editor.formatOnSave": false,
"editor.glyphMargin": true,
"editor.minimap.renderCharacters": false,
"editor.roundedSelection": false,
"editor.lineNumbers": "relative",
"editor.rulers": [72, 79],
// Separators Extension Settings
"separators.enabledSymbols": [
"Classes",
"Constructors",
"Enums",
"Functions",
"Interfaces",
"Methods",
"Namespaces",
"Structs"
],
// TO do tree extension settings
"todo-tree.general.tags": [
"BUG",
"HACK",
"FIXME",
"TODO",
"XXX",
"[ ]",
"[x]"
],
"todo-tree.regex.regex": "(//|'|#|<!--|;|/\\*|^|^[ \\t]*(-|\\d+.))\\s*($TAGS)",
/*Terminal settings: using Git Bash
Using git-bash as the terminal in windows can be difficult to setup
but use the path to 'bash.exe' under git>bin
Make sure to add the argument "-l" which stands for login,
the same meaning as "--login"
Terminal should use different font from code editor
*/
"terminal.integrated.fontFamily": "'Lucida Console','Courier New', 'Consolas','Fira Code', 'Anonymous Pro','monospace'",
"terminal.external.windowsExec": "C:\\tools\\Cmder\\vendor\\git-for-windows\\bin\\bash.exe",
"terminal.integrated.profiles.windows": {
"Git Bash": {
"path": [
"C:\\Program Files\\Git\\bin\\bash.exe"
],
"icon": "terminal-bash",
"args": ["-l"]
},
"Cmder": {
"name": "Cmder",
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"args": ["/k", "${env:cmder_root}\\vendor\\bin\\vscode_init.cmd"],
"icon": "terminal-cmd",
}
},
"terminal.integrated.defaultProfile.windows": "Git Bash",
"terminal.integrated.copyOnSelection": true,
"terminal.integrated.enableMultiLinePasteWarning": false,
"terminal.integrated.cursorBlinking": false,
"terminal.integrated.shellIntegration.enabled": false,
"terminal.integrated.env.windows": {
"path": "C:\\Users\\lunde\\AppData\\Local\\Programs\\Microsoft VS Code\\bin"
},
// Git settings
"git.enabled": true,
// MSSQL Extension Settings
"[sql]": {
"editor.defaultFormatter": "adpyke.vscode-sql-formatter",
},
"mssql.enableQueryHistoryCapture": false,
"mssql.connections": [
{
"server": "nshsql2p",
"database": "CourtReport",
"authenticationType": "Integrated",
"password": "",
"encrypt": "Mandatory",
"trustServerCertificate": true
},
{
"server": "MHNODSSQL1P",
"database": "",
"authenticationType": "Integrated",
"password": "",
"encrypt": "Mandatory",
"trustServerCertificate": true
},
{
"server": "nshsql1p",
"database": "",
"authenticationType": "Integrated",
"password": "",
"encrypt": "Mandatory",
"trustServerCertificate": true
}
],
// Prettier-SQL settings
"Prettier-SQL.commaPosition": "before",
"Prettier-SQL.SQLFlavourOverride": "sql",
"mssql.splitPaneSelection": "end",
"Prettier-SQL.breakBeforeBooleanOperator": true,
// With python code
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.tabSize": 4,
"editor.insertSpaces": true,
"editor.formatOnType": true
},
"python.formatting.blackArgs": ["--line-length", "79"],
"python.formatting.provider": "black",
// Office Viewer(Markdown)
"vscode-office.openOutline": false,
"workbench.editorAssociations": {
"*.md": "default",
"*.ipynb": "jupyter-notebook",
"*.sql": "sql-notebook"
},
// File handling section
"files.associations": {
"*.bas": "vb"
},
"files.trimTrailingWhitespace": true,
"files.eol": "\r\n",
// Exclude files from search
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/*.pyc": true,
"**/__pycache__": true
},
// Rewrap ext settings
"rewrap.autoWrap.notification": "text",
"rewrap.wrappingColumn": 72,
// Prettier-esbenp settings change to whatever editor needed for that lang
"[html]": {
"editor.defaultFormatter": "svipas.prettier-plus",
},
"[css]": {
"editor.defaultFormatter": null,
},
// Autoit Files
"autoit.aiPath": "C:\\Program Files (x86)\\AutoIt3\\AutoIt3_x64.exe",
"autoit.wrapperPath": "C:\\Program Files (x86)\\AutoIt3\\SciTE\\AutoIt3Wrapper\\AutoIt3Wrapper.au3",
"autoit.tidyPath": "C:\\Program Files (x86)\\AutoIt3\\SciTE\\Tidy\\Tidy.exe",
"autoit.checkPath": "C:\\Program Files (x86)\\AutoIt3\\Au3Check.exe",
"autoit.helpPath": "C:\\Program Files (x86)\\AutoIt3\\AutoIt3Help.exe",
"autoit.infoPath": "C:\\Program Files (x86)\\AutoIt3\\Au3Info_x64.exe",
"autoit.kodaPath": "C:\\Program Files (x86)\\AutoIt3\\SciTE\\Koda\\FD.exe",
"autoit.showVariablesInGoToSymbol": true,
"autoit.showRegionsInGoToSymbol": true,
"autoit.includePaths": [
"C:\\Program Files (x86)\\AutoIt3\\Include"
],
"autoit.UDFCreator": "lundeen-bryan",
// File Header Generator Ext by TheRepoClub
"fileheadergenerator.github": "https://github.com/lundeen-bryan",
"fileheadergenerator.username": "lundeen-bryan",
"fileheadergenerator.dateFormat": "DDDD ttt",
// Empty-indent settings
/* Automatically remove indentation in empty lines on save */
"emptyIndent.removeIndent": true,
/* Highlight indent on empty lines */
"emptyIndent.highlightIndent": false,
/* Highlight indent color */
"emptyIndent.highlightColor": "rgba(246,36,89,0.6)",
/* Excluded file types */
"emptyIndent.exclude": [".md"],
// Menu Builder by kylpo
// https://marketplace.visualstudio.com/items?itemName=kylpo.vscode-menu-builder
"extension.menuBuilder": [
{
"id": "textMenu",
"items": [
{
"label": "To Upper case",
"command": "editor.action.transformToUppercase"
},
{
"label": "To Lower case",
"command": "editor.action.transformToLowercase"
},
{
"label": "Comment Line",
"description": "Switch comment lines",
"command": "editor.action.commentLine"
},
{
"label": "Indent Submenu",
"command": "extension.menuBuilder",
"args": "indentSubmenu"
}
]
},
{
"id": "indentSubmenu",
"items": [
{
"label": "Indent To Tabs",
"command": "editor.action.indentationToTabs"
},
{
"label": "Indent To Spaces",
"command": "editor.action.indentationToSpaces"
}
]
}
],
// Nested tags ext settings
"vscode-nested-tags.additionalFileTypes": ["py", "html"],
// Jupyter notebook settings
"notebook.lineNumbers": "on",
// Python Auto Docstring ext settings
// https://t.ly/giP90
"autoDocstring.docstringFormat": "numpy",
"autoDocstring.includeExtendedSummary": true,
"autoDocstring.startOnNewLine": true,
// Markdown preview enhanced ext settings
"markdown-preview-enhanced.previewTheme": "newsprint.css",
// Default source language for translation-ext
// https://t.ly/UGGg6
"translation.source-language": "auto",
"translation.simple-display-mode": "statusBar",
"translation.target-language": "en",
// Sidenotes
"sidenotes.defaultContentFileExtension": ".md",
"sidenotes.hoverToolbar": true,
"sidenotes.showIdOnHover": true,
// Code Runner Extension Settings; vim use ",,e" to run code-runner
// https://t.ly/kSUET
"code-runner.runInTerminal": true,
"code-runner.showRunCommandInEditorContextMenu": true,
"workbench.startupEditor": "none",
"vscode-office.chromiumPath": "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe",
"vscode-office.previewCodeHighlight.style": "vim",
"markdown-toc.depthFrom": 2,
// Tabnine settings
"tabnine.experimentalAutoImports": true,
// Snippets viewer Extension
"snippets.viewer.sortSnippetsByName": true,
"snippets.viewer.combineLanguageSnippets": false,
// Opt-out of extension updates
"extensions.autoUpdate": false,
// Opt out of VS Code updates
"update.mode": "none",
// Templates by rexam
"templates.author": "lundeen-bryan",
"templates.folder": "C:\\Users\\lunde\\.templates",
"templates.dateTimeFormat": {
"locale": "en-US",
"options": {
"year": "numeric",
"month": "2-digit",
"day": "2-digit",
"hour12": false,
"hour": "2-digit",
"minute": "2-digit",
"second": "2-digit"
},
"template": "${year}-${month}-${day}-${hour}.${minute}",
},
// Wrap Selection Ext
"wrapSelection.patterns": {
"ic": "ic(${text})"
},
// Misc Settings
"[powerquery]": {},
"git.openRepositoryInParentFolders": "never",
"update.enableWindowsBackgroundUpdates": false,
"security.workspace.trust.untrustedFiles": "open",
"better-comments.highlightPlainText": true,
"better-comments.multilineComments": true,
"explorer.confirmDragAndDrop": false,
"autoDocstring.includeName": true,
"[javascript]": {
"editor.defaultFormatter": "svipas.prettier-plus"
},
"rewrap.autoWrap.enabled": true,
"[markdown]": {
"editor.defaultFormatter": "svipas.prettier-plus"
},
"workbench.iconTheme": "helium-icon-theme"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment