Development with Visual Studio Code - wb8tyw/D-Rats GitHub Wiki

Developement with Visual Studio Code

Visual Studio Code is an Open Source cross platform IDE that I am starting to use.

Configuration

D-Rats development requires a Python to be installed.

For Linux, Python2 may or may not come from the linux distribution, and Python3 should come from the Linux distribution. The end goal is python3.

For Microsoft Windows, I am going to use a python from Python.org releases for Microsoft Windows

I used the the following based on a 32 bit or 64 bit windows for starters:

Global configuration

The global configuration file may need some manual edits for your preferences. It is access by view->Command Pallet->Open Settings(json). This json file location varies with the operating system, and generally can be copied from system to system.

settings.json

// Place your settings in this file to overwrite the default settings
{
    "editor.rulers": [
        80,
        132
    ]
}

For editor sessions make sure that line endings are \n or Linefeeds, especially on Windows platforms.
It is a common myth that Windows requires \n\r line endings.   Only a small number of windows tools require this.

This is in File->Preferences->settings->Text Editor->Files->Eol

Plugins

As you work with Visual Studio Code, it will prompt for suggested plugins.

Note not all plugins will work on all operating systems, and some need additional software installed.

Current Plugins

  • Ansible from Microsoft
  • Markdownlint from David Anson
  • Markdown Preview Github Styling by Matt Bierner
  • Python from Microsoft
  • Code Spell Checker from Street Side Software

The Python from Microsoft on Anti-X linux required both the pylint and pylint3 packages to be installed.