Skip to content

Setting up Visual Studio Code

Developing for Lime CRM can be done with any editor you would like, but using Visual Studio Code will give you a very integrated experience. In this section we will recommend some extensions and configuration to Visual Studio Code.

Install

Visual Studio Code comes with a lot of useful features, such as:

  • built-in terminal,
  • built-in Git support
  • IntelliSense, which helps with autocompletion of code as well as information on the parameters of functions and known variable names.
  • Very good Python and Typescript language support
  • Built-in debugger for Python and Typescript

Open the "Extensions" in VS Code and install the following extensions:

  1. ms-python.python
  2. eamodio.gitlens
  3. esbenp.prettier-vscode
  4. editorconfig.editorconfig

Restart VS Code after you've installed the extensions.

Configure Visual Studio Code for Python

  • Install the Python extension from "Extensions" by opening the command palette and type "Install Extensions"
  • Search and install extension ms-python.python by Microsoft
  • Open the settings file by opening the command palette and type "Open User Settings (JSON)"
  • Add the following settings to User Settings within the curly brackets:

    "[python]": {
        "editor.rulers": [79, 88]
    },
    "python.linting.pylintEnabled": false,
    "python.linting.flake8Enabled": true,
    "flake8.importStrategy": "fromEnvironment",
    
  • Restart VS Code