Skip to content

Instantly share code, notes, and snippets.

@pZacca
Last active June 7, 2024 02:29
Show Gist options
  • Save pZacca/5545539d8f9cff6d64e40a16a821b382 to your computer and use it in GitHub Desktop.
Save pZacca/5545539d8f9cff6d64e40a16a821b382 to your computer and use it in GitHub Desktop.
VS Code Python and Code Runner Settings for Windows
{
// Workbench and Window
"workbench.startupEditor": "newUntitledFile",
"workbench.editor.labelFormat": "short",
"workbench.editor.enablePreview": false,
"workbench.sideBar.location": "left",
"window.menuBarVisibility": "toggle",
"workbench.list.smoothScrolling": true,
"workbench.iconTheme": "material-icon-theme",
"workbench.productIconTheme": "icons-carbon",
"workbench.colorTheme": "Beautiful Dracula Darker - No Highlight",
"workbench.preferredDarkColorTheme": "Beautiful Dracula Darker - No Highlight",
"workbench.tree.indent": 20,
// Indent Rainbow
"indentRainbow.ignoreLinePatterns": [
"/[ \t]* [*]/g",
"/[ \t]+[/]{2}/g"
],
"indentRainbow.indentSetter": {},
"indentRainbow.indicatorStyle": "light",
"indentRainbow.lightIndicatorStyleLineWidth": 5,
// VSCord
"vscord.status.image.large.viewing.key": "https://raw.githubusercontent.com/xhayper/catppuccin-vscord/main/images/mocha/{lang}.png",
"vscord.status.image.large.editing.key": "https://raw.githubusercontent.com/xhayper/catppuccin-vscord/main/images/mocha/{lang}.png",
"vscord.status.image.large.debugging.key": "https://raw.githubusercontent.com/xhayper/catppuccin-vscord/main/images/mocha/{lang}.png",
"vscord.status.image.large.idle.key": "https://raw.githubusercontent.com/xhayper/catppuccin-vscord/main/images/mocha/{lang}.png",
"vscord.status.image.large.notInFile.key": "https://raw.githubusercontent.com/xhayper/catppuccin-vscord/main/images/mocha/vscode.png",
"vscord.status.image.small.viewing.key": "https://raw.githubusercontent.com/xhayper/catppuccin-vscord/main/images/mocha/{app_id}.png",
"vscord.status.image.small.editing.key": "https://raw.githubusercontent.com/xhayper/catppuccin-vscord/main/images/mocha/{app_id}.png",
"vscord.status.image.small.debugging.key": "https://raw.githubusercontent.com/xhayper/catppuccin-vscord/main/images/mocha/{app_id}.png",
"vscord.status.image.small.idle.key": "https://raw.githubusercontent.com/xhayper/catppuccin-vscord/main/images/mocha/{app_id}.png",
"vscord.status.image.small.notInFile.key": "https://raw.githubusercontent.com/xhayper/catppuccin-vscord/main/images/mocha/{app_id}.png",
"vscord.app.name": "Visual Studio Code",
"vscord.status.problems.enabled": false,
// Editor
"breadcrumbs.enabled": false,
"editor.renderControlCharacters": false,
"editor.tabSize": 4,
"editor.renderLineHighlight": "gutter",
"editor.rulers": [
79,
120
],
"editor.minimap.enabled": false,
"editor.fontSize": 14,
"editor.detectIndentation": true,
"editor.snippetSuggestions": "top",
"editor.wordBasedSuggestions": "off",
"editor.suggest.localityBonus": true,
"editor.acceptSuggestionOnCommitCharacter": false,
"editor.formatOnPaste": false,
"editor.cursorSmoothCaretAnimation": "on",
"editor.mouseWheelScrollSensitivity": 2,
"editor.smoothScrolling": true,
"editor.mouseWheelZoom": true,
"editor.linkedEditing": true,
"editor.fontFamily": "'Operator Mono Lig Book', 'SF Mono', Consolas, 'Source Code Pro', 'Dank Mono', 'Fira Code', Menlo, 'Inconsolata', 'Droid Sans Mono', 'DejaVu Sans Mono', 'Ubuntu Mono', 'Courier New', Courier, Monaco, monospace",
"editor.glyphMargin": false,
"editor.fontLigatures": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always",
"source.fixAll": "always"
},
"editor.suggestSelection": "first",
"explorer.compactFolders": false,
"explorer.confirmDelete": true,
// Git
"diffEditor.ignoreTrimWhitespace": true,
// Files and search
"files.defaultLanguage": "{activeEditorLanguage}",
"files.exclude": {
"USE_GITIGNORE": true
},
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/coverage": true,
"**/dist": true,
"**/build": true,
"**/.build": true,
"**/.gh-pages": true
},
// Python
"[python]": {
"editor.defaultFormatter": "ms-python.autopep8",
"editor.tabSize": 4,
"editor.insertSpaces": true,
"editor.formatOnSave": true,
"editor.formatOnType": true
},
"python.testing.unittestEnabled": true,
"python.terminal.activateEnvironment": false,
// Django
"files.associations": {
"*.html": "html",
"**/templates/*.html": "django-html",
"**/templates/*": "django-txt",
"**/requirements{/**,*}.{txt,in}": "pip-requirements"
},
// Terminal
"terminal.integrated.copyOnSelection": false,
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.cursorStyle": "line",
"terminal.integrated.defaultProfile.windows": "PowerShell",
// Emmet
"emmet.includeLanguages": {
"django-html": "html",
},
// Code Runner
"code-runner.clearPreviousOutput": true,
"code-runner.ignoreSelection": true,
"code-runner.saveFileBeforeRun": true,
"code-runner.runInTerminal": true,
"code-runner.preserveFocus": false,
"code-runner.executorMap": {
"python": "cls ; python -u",
},
// Material icon theme extension
"material-icon-theme.hidesExplorerArrows": true,
"material-icon-theme.folders.theme": "specific",
"material-icon-theme.folders.color": "#6273a6",
// Colorize
"colorize.hide_current_line_decorations": false,
"colorize.include": [
".tsx",
".jsx",
".ts",
".js"
],
"colorize.languages": [
"typescriptreact",
"javascriptreact",
"javascript",
"typescript",
"css",
"sass",
"scss",
"less",
"pcss",
"sss",
"stylus",
"xml",
"svg",
"json",
"jsonc",
"yaml"
],
"colorize.colorized_colors": [
// "BROWSERS_COLORS"
"HEXA",
"RGB",
"HSL"
],
"colorize.enable_search_variables": false,
// VsCode Action Buttons
"actionButtons": {
"defaultColor": "#8be9fd", // Can also use string color names.
"loadNpmCommands": false, // Disables automatic generation of actions for npm commands.
"reloadButton": "🗘", // Custom reload button text or icon (default ↻). null value enables automatic reload on configuration change
"commands": [
{
"cwd": "./", // Terminal initial folder ${workspaceFolder} and os user home as defaults
"name": "Open dictionary",
"color": "#8be9fd",
"singleInstance": true,
"command": "code -r ~/Development/custom-cspell-dictionary.txt; exit" // This is executed in the terminal.
}
]
},
// CSpell checker extension
"cSpell.enabled": true,
"cSpell.language": "en,pt,pt_BR",
"cSpell.enableFiletypes": [
"shellscript"
],
"cSpell.customDictionaries": {
"custom-dictionary-user": {
"name": "custom-dictionary-user",
"path": "~/.cspell/custom-dictionary-user.txt",
"addWords": true,
"scope": "user"
}
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment