Skip to content

Instantly share code, notes, and snippets.

@EstebanMqz
Last active May 8, 2024 10:45
Show Gist options
  • Save EstebanMqz/7d1e5b8022d429dd85ab9fa994461c7a to your computer and use it in GitHub Desktop.
Save EstebanMqz/7d1e5b8022d429dd85ab9fa994461c7a to your computer and use it in GitHub Desktop.
Settings.md


(Back-up & shareable purposes other than Cloud / Local Workspaces.)

SyncVS-Code-Web


Recommended: Add CMD Here Context.
double-click it to add it.

Profile Bashrc

Recommended: Have a System Restore Point if modifying the Registry Editor.


CMD Here from anywhere in File Explorer by cloning the repository: and running in its PATH:

./CMD.reg

Options:

  1. Open a File Explorer and type the Environment Variable address: %AppData%\Code\User\settings.json
  2. Open CMD with Search in the taskbar (anywhere):
  3. Use CMD Here in File Explorer (anywhere):
%AppData%\Code\User\settings.json

Be aware of timeline (on any file).


Settings.json

// User's Custom VSCode settings.json:
{

    "docsView.documentationView.updateMode": "live", // Update mode for the docs view: "live" or "onType".
    "security.workspace.trust.untrustedFiles": "open", // Behavior for opening untrusted files in the workspace: "open" or "prompt".
    "git.openRepositoryInParentFolders": "always", // Open repositories in parent folders when opening a folder: "always", "smart", or "off".
    "powershell.analyzeOpenDocumentsOnly": true, // Analyze only the open PowerShell documents: true or false.
    "explorer.compactFolders": true, // Display folders in a compact form in the explorer: true or false.
    "settingsSync.ignoredExtensions": [], // List of extensions to be ignored during settings synchronization.
    "telemetry.telemetryLevel": "off", // Level of telemetry data to be sent: "off", "on", or "verbose".

    //Notebook settings
    "notebook.output.scrolling": true,
    "notebook.output.textLineLimit": 300,
    "notebook.output.lineHeight": 1.2,
    "notebook.output.wordWrap": true,
    "notebook.lineNumbers": "on",
    "notebook.cellToolbarLocation": {
        "default": "right",
        "jupyter-notebook": "left"
    },
    //Voice Assistant Settings
    "b4rtaz.voice-assistant": {
        "enable": true
    },
    //Jupyter Notebook Settings
    "jupyter.logKernelOutputSeparately": true,
    "jupyter.widgetScriptSources": [],
    "jupyter.interactiveWindow.textEditor.executeSelection": true,
    "jupyter.allowUnauthorizedRemoteConnection": false,
    "jupyter.jupyterCommandLineArguments": [],

    //Editor Settings
    "editor.fontWeight": "normal",
    "editor.fontSize": 12,
    "editor.inlineSuggest.enabled": true,
    "editor.inlineSuggest.showToolbar": "always",
    "editor.suggest.showClasses": true,
    "editor.suggest.showProperties": true,
    "editor.codeActionsOnSave": {},
    
    //Terminal Settings
    "terminal.integrated.gpuAcceleration": "on", // Controls GPU acceleration for the terminal: "on", "off", or "canvas".
    "terminal.integrated.persistentSessionReviveProcess": "onExitAndWindowClose", // Controls when terminal processes are restored: "onExit", "onExitAndWindowClose", or "never".
    "terminal.sourceControlRepositoriesKind": "both", // Controls whether to show repositories detected in the workspace or in the open file's folder: "workspace", "file", or "both".
    "terminal.integrated.tabs.title": "${local}", // Controls the title of the terminal tabs: string.
    "terminal.integrated.fontSize": 14, // Controls the font size in pixels for the terminal: number.
    "terminal.integrated.defaultProfile.windows": "PowerShell", // Controls the default profile for the terminal on Windows: string.
    "terminal.integrated.scrollback": 10000, // Controls the maximum amount of lines the terminal keeps in its buffer: number.
    "terminal.integrated.persistentSessionScrollback": 10000, // Controls the maximum amount of lines the terminal keeps in its buffer when a session is restored: number.
    "terminal.integrated.automationProfile.windows": null, // Controls the profile to use for new terminals created as part of automation: string or null.
    "terminal.integrated.fontWeight": "normal", // Controls the font weight for the terminal: "normal", "bold", number between "1" and "1000".

    //Workbench Settings
    "workbench.editor.enablePreview": false,
    "workbench.sideBar.location": "right",
    "workbench.preferredDarkColorTheme": "Default Dark+",
    "workbench.preferredLightColorTheme": "Default Light+",
    "workbench.startupEditor": "welcomePage",
    "workbench.enableExperiments": true,
    "workbench.preferredHighContrastLightColorTheme": "Default High Contrast Light",
    "workbench.editor.tabSizing": "shrink",
    "workbench.colorCustomizations": {},
    "workbench.editorAssociations": {
        "*.ipynb": "jupyter-notebook",
        "*.csv": "gc-excelviewer-csv-editor",
        "*.dat": "default"
    },
        
    //Remote Settings
    "remote.tunnels.access.hostNameOverride": "EstebanMqz",
    "remote.tunnels.access.preventSleep": true,
    "remote.downloadExtensionsLocally": true,

    /* VSCode (pre)recognized extensions: 
    .js: JavaScript,
    .ts: TypeScript,
    .html: HTML,
    .css: CSS,
    .json: JSON,
    .py: Python, 
    .java: Java,
    .c: C,
    .cpp: C++,
    .cs: C#,
    .php: PHP,
    .rb: Ruby,
    .go: Go,
    .rs: Rust, 
    .swift: Swift,
    .sh: Shell (Bash),
    .bat: Batch (CMD),
    .ps1: PowerShell, 
    .md: Markdown, 
    .r: R,
    .yml: YAML, & .yaml: YAML,
    .xml: XML,
    .sql: SQL, 
    .dart: Dart,
    .kt: Kotlin,
    .scala: Scala,
    .lua: Lua,
    .groovy: Groovy,
    .pl: Perl */

    "files.associations": {
        "*.csv": "gc-excelviewer-csv-editor",
        "*.ipynb": "jupyter-notebook",
    },
        //Set up markdown all in one as the default formatter
        "[markdown]": {
            "editor.suggestSelection": "recentlyUsedByPrefix",
            "editor.defaultFormatter": "yzhang.markdown-all-in-one",
            "editor.formatOnType": true,
            "editor.formatOnSave": true,
            "editor.formatOnSaveMode": "modifications",
            "editor.wordWrap": "on",
        },
        "[html]": {
            "editor.suggestSelection": "recentlyUsedByPrefix",
            "editor.formatOnType": true,
            "editor.formatOnSave": true,
            "editor.suggest.showProperties": true,
            "editor.suggest.showVariables": true,
            "editor.suggest.showColors": true,
            "editor.suggest.showClasses": true,
            "editor.suggest.showFiles": true, 
            "editor.wordWrap": "on"
        },
        "[css]": {
            "editor.suggestSelection": "recentlyUsedByPrefix",
            "editor.formatOnSaveMode": "modifications",
            "editor.formatOnType": true,
            "editor.formatOnSave": true,
            "editor.suggest.showClasses": true,
            "editor.suggest.showProperties": true,
            "editor.suggest.showVariables": true,
            "editor.suggest.showColors": true,
            "editor.suggest.showFiles": true,
            "editor.suggest.showUnits": true,
            "editor.suggest.showFunctions": true,
            "editor.suggest.showValues": true,
            "editor.wordWrap": "on"
        },
        "[python]": {
            "editor.formatOnSave": true,
            "editor.formatOnType": true,
            "editor.suggestSelection": "recentlyUsedByPrefix",
            "editor.wordWrap": "on"
        },
        "[jupyter]": {
            "editor.formatOnSave": true,
            "editor.formatOnType": true
        },
        "[RMarkdown]": {
            "editor.formatOnSave": true,
            "editor.formatOnType": true,
            "editor.suggestSelection": "recentlyUsedByPrefix",
            "editor.wordWrap": "on"
        },
        "[R]": {
            "editor.formatOnSave": true,
            "editor.formatOnType": true,
            "editor.suggestSelection": "recentlyUsedByPrefix",
            "editor.wordWrap": "on",
            "editor.guides.highlightActiveIndentation": true,
        },
        "[shellscript]": {
            "editor.formatOnSave": true,
            "editor.formatOnType": true,
            "editor.suggestSelection": "recentlyUsedByPrefix",
            "editor.wordWrap": "on"
        },
        "[powershell]": {
            "editor.formatOnSave": true,
            "editor.formatOnType": true,
            "editor.suggestSelection": "recentlyUsedByPrefix",
            "editor.wordWrap": "on"
        },
        "[bat]": {
            "editor.formatOnSave": true,
            "editor.formatOnType": true,
            "editor.suggestSelection": "recentlyUsedByPrefix",
            "editor.wordWrap": "on"
        },
        "[yaml]": {
            "editor.formatOnSave": true,
            "editor.formatOnType": true,
            "editor.suggestSelection": "recentlyUsedByPrefix",
            "editor.wordWrap": "on"
        },
        "[javascript]": {
            "editor.formatOnSave": true,
            "editor.formatOnType": true,
            "editor.suggestSelection": "recentlyUsedByPrefix",
            "editor.wordWrap": "on"
        },
        "[typescript]": {
            "editor.formatOnSave": true,
            "editor.formatOnType": true,
            "editor.suggestSelection": "recentlyUsedByPrefix",
            "editor.wordWrap": "on"
        },

        "[json]": {
            "editor.formatOnSave": true,
            "editor.formatOnType": true,
            "editor.suggestSelection": "recentlyUsedByPrefix",
            "editor.wordWrap": "on"
        },
        "[csharp]": {
            "editor.formatOnSave": true,
            "editor.formatOnType": true,
            "editor.suggestSelection": "recentlyUsedByPrefix",
            "editor.wordWrap": "on"
        },
        "[php]": {
            "editor.formatOnSave": true,
            "editor.formatOnType": true,
            "editor.suggestSelection": "recentlyUsedByPrefix",
            "editor.wordWrap": "on"
        },
        "[java]": {
            "editor.formatOnSave": true,
            "editor.formatOnType": true,
            "editor.suggestSelection": "recentlyUsedByPrefix",
            "editor.wordWrap": "on"
        },
        "[cpp]": {
            "editor.formatOnSave": true,
            "editor.formatOnType": true,
            "editor.suggestSelection": "recentlyUsedByPrefix",
            "editor.wordWrap": "on"
        },
        "[plaintext]": {
            "editor.formatOnSave": true,
            "editor.formatOnType": true,
            "editor.suggestSelection": "recentlyUsedByPrefix",
            "editor.wordWrap": "on"
        },

    "liveshare.accessibility.voiceEnabled": false,
    "terminal.integrated.commandsToSkipShell": [
        "github.copilot.terminal.suggestCommand",
        "matlab.interrupt"
    ],

    // Location of Resources on a Network for UNC (Universal Naming Convention) hosts usage.
    "security.allowedUNCHosts": [
        "wsl.localhost"
    ],

    // GitHub Copilot Settings.
    "github.copilot.editor.enableAutoCompletions": true,
    "github.copilot.enable": {
        "*": true, // All Languages Autocompletions.
        "plaintext": true, // Autocompletions for .txt files.
        "markdown": true,
        "scminput": false // Git Commit Messages Autocompletions.    
    },

    // Settings.json Advanced Xopilot features.
    "github.copilot.advanced": {
        "enable": true,
        "enableAutocomplete": true,
        "inlineSuggestCount": 200,
        "enableAutocompleteInAllLanguages": true,
        "enableAutocompleteInAllComments": true,
        "enableAutocompleteInAllStrings": true,
        "enableAutocompleteInAllLiterals": true,
        "enableAutocompleteInAllMarkdown": true,
        "enableAutocompleteInAllYaml": true,
        "enableAutocompleteInAllJson": true,
        "enableAutocompleteInAllXml": true,
        "enableAutocompleteInAllHtml": true,
        "enableAutocompleteInAllCss": true,
        "enableAutocompleteInAllJs": true,
        "enableAutocompleteInAllTs": true,
        "enableAutocompleteInAllPython": true,
        "enableAutocompleteInAllJava": true,
        "enableAutocompleteInAllCsharp": true,
        "enableAutocompleteInAllCpp": true,
        "enableAutocompleteInAllPhp": true,
        "enableAutocompleteInAllShell": true,
        "enableAutocompleteInAllPowershell": true,
        "enableAutocompleteInAllBat": true,
        "enableAutocompleteInAllR": true,
        "enableAutocompleteInAllRmd": true,
        "enableAutocompleteInAllRmarkdown": true,
        "enableAutocompleteInAllJupyter": true,
        "enableAutocompleteInYamlComments": true,
        "enableAutocompleteInJsonComments": true,
        "enableAutocompleteInXmlComments": true,
        "enableAutocompleteInHtmlComments": true,
        "enableAutocompleteInCssComments": true,
        "enableAutocompleteInJsComments": true,
        "enableAutocompleteInTsComments": true,
        "enableAutocompleteInPythonComments": true,
        "enableAutocompleteInJavaComments": true,
        "enableAutocompleteInCsharpComments": true,
        "enableAutocompleteInCppComments": true,
        "enableAutocompleteInPhpComments": true,
        "enableAutocompleteInShellComments": true,
        "enableAutocompleteInPowershellComments": true,
        "enableAutocompleteInBatComments": true,
        "enableAutocompleteInRComments": true,
        "enableAutocompleteInRmdComments": true,
        "enableAutocompleteInRmarkdownComments": true,
        "enableAutocompleteInJupyterComments": true,
        "enableAutocompleteInYamlStrings": true,
        "enableAutocompleteInJsonStrings": true,
        "enableAutocompleteInXmlStrings": true,
        "enableAutocompleteInHtmlStrings": true,
        "enableAutocompleteInCssStrings": true,
        "enableAutocompleteInJsStrings": true,
        "enableAutocompleteInTsStrings": true,
        "enableAutocompleteInPythonStrings": true,
        "enableAutocompleteInJavaStrings": true,
        "enableAutocompleteInCsharpStrings": true,
        "enableAutocompleteInCppStrings": true,
        "enableAutocompleteInPhpStrings": true,
        "enableAutocompleteInShellStrings": true,
        "enableAutocompleteInPowershellStrings": true,
        "enableAutocompleteInBatStrings": true,
        "enableAutocompleteInRStrings": true,
        "enableAutocompleteInRmdStrings": true,
        "enableAutocompleteInRmarkdownStrings": true,
        "enableAutocompleteInJupyterStrings": true,

        //Win-CA Certificate to insert in Node.js trust store.
        
        "win-ca": { 
            "inject": "append", // Controls how the certificates are injected: "append", "replace", or "off".
            "store": [
                {
                    "name": "EstebanMqz", // The name of the certificate store: string.
                    "path": "C:\\Users\\Esteban\\AppData\\Local\\mkcert\\rootCA.pem" // The path to the certificate store: string.
                }
            ],
        },
    },
}

⚡Availability: 24/7 Connect with me in LinkedIn, and feel free to send me a WA ONLY FOR BUSINESS INQUIRIES.

Description
Type: Code Snippet ( json )
Usage: VSCode settings.json (history) for shareable & registry purposes.
Mainly to be able to setup or recover certain User settings faster.
Author: Resume LinkedInBusiness Gmail Github GitLab
Tags: pipreqs glob pip install import tabulate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment