VSCode-Anywhere
  • Introduction
  • Installation
    • Requirements
      • Windows requirements
      • Linux requirements
      • MacOS requirements
    • Quickstart
    • Advanced
      • Windows installation
      • Linux installation
      • MacOS installation
  • Modules
    • Module installation
    • Module update
    • Module settings
      • Global settings
        • brew settings
        • chocolatey settings
        • env settings
        • msys2 settings
        • nix settings
        • scoop settings
        • vscode settings
        • zeal settings
    • Modules list
      • Ansible
      • Bash
      • C / C++
      • C#
      • Custom
      • Deepcode
      • Docker
      • Fonts
      • Git
      • Go
      • HTML
      • Java
      • JavaScript / TypeScript
      • Markdown
      • Perl
      • PHP
      • Platformio
      • PowerShell
      • Puppet
      • Python2
      • Python3
      • Remote
      • Rest
      • ReStructuredText
      • Ruby
      • Saltstack
      • VSCode
    • Custom modules
  • Structure
    • apps
    • conf
      • saltstack
        • conf-offline
        • conf
        • pillar
        • states
    • tools
      • env
      • install
      • link
      • update
      • vscode
      • vscode-anywhere
  • Tutorials
    • Youtube tutorials
  • Release notes
    • V2
      • V2.0.0
    • V1
  • FAQ
Powered by GitBook
On this page
  • extensions
  • settings
  • keybindings

Was this helpful?

  1. Modules
  2. Module settings
  3. Global settings

vscode settings

Previousscoop settingsNextzeal settings

Last updated 4 years ago

Was this helpful?

Allow managing .

extensions

extensions allow to manage the .

You need to specify the name of the extensions to install.

For each extension you can specify the following arguments:

  • enabled: True to install or False to ignore (default to False)

  • version: specify the version to install (default to null). If null the latest version will be installed

vscode-anywhere:
    python3:
        enabled: True
        vscode:
            extensions:
                ms-python.python:
                    enabled: True
                    version: null
                VisualStudioExptTeam.vscodeintellicode:
                    enabled: True
                    version: null
                ms-pyright.pyright:
                    enabled: True
                    version: null
                    settings:
                        pyright.disableLanguageServices: True
                alefragnani.Bookmarks:
                    enabled: True
                    version: null
                    keybindings:
                       - key: alt+l
                         command: bookmarks.toggle
                         when: editorTextFocus

If the 2 extensions ms-pyright.pyrighr and alefragnani.Bookmarks are set to enabled: False then no keybindings or settings will be applied. But reverts the value from True to False will not remove the settings or keybindings already applied.

settings

You need to specify the name of the settings and their values.

A simple example to set settings globally for the python3 module:

vscode-anywhere:
    python3:
        enabled: True
        vscode:
            settings:
                code-runner.executorMap.python: $pythonPath -u $fullFileName
                python.linting.pylintEnabled: False
                python.linting.flake8Enabled: True
                python.linting.flake8Args:
                    - --max-line-length=88
                python.linting.enabled: True
                python.jediEnabled: False
                python.autoComplete.addBrackets: True
                python.formatting.provider: black
                python.workspaceSymbols.ctagsPath: {{ salt['grains.get']('vscode-anywhere:apps:path') | path_join('scoop', 'apps', 'ctags', 'current', 'ctags.exe') }}

In this example, jinja is used for python.workspaceSymbols.ctagsPath.

keybindings

Keybinds is an array with the followings values:

  • key: a key that describes the pressed keys

  • command a command containing the identifier of the command to execute

  • when: an optional when clause containing a boolean expression that will be evaluated depending on the current context

A simple example to set keybindings globally for the python3 module:

python3:
    enabled: True
    vscode:
        keybindings:
            alefragnani.Bookmarks:
                enabled: True
                version: null
                keybindings:
                  - key: alt+l
                    command: bookmarks.toggle
                    when: editorTextFocus

This is just an illustrative example and no keybindings are set inside the python3 module.

settings: set only if this extension is enabled

keybindings: set only if this extension is enabled

Simple example, in the file to ask to install settings in the python3 module with the extensions ms-pyright.pyrighr and keybindings with the extension alefragnani.Bookmarks:

Manage in VSCode.

Custom grains are set inside the file.

Manage in VSCode.

VSCode settings
VSCode keybindings
VSCode settings
VSCode keybindings
vscode
VSCode extensions
vscode-anywhere.sls
grains