Skip to content

Visual Studio Code Extension

David Alcantar edited this page May 17, 2023 · 5 revisions

The DevSkim VS Code plugin is a Language Server Protocol client that communicates with the DevSkim Language Server. The language server uses the standard C# DevSkim engine for scanning.

Running DevSkim in VS Code

The DevSkim VS Code plugin can be downloaded from the VS Code Extension Marketplace or installed from the VS Code extensions manager.

Alternatively, in VS Code, launch the Quick Open bar (Ctrl + P), and run the following command:

ext install ms-cst-e.vscode-devskim

This will install the DevSkim plugin in:

  • Windows: %USERPROFILE%.vscode\extensions\vscode-devskim
  • Mac/Linux: $HOME/.vscode/extensions/vscode-devskim

Once installed, you can use the Options panel in VS Code to modify DevSkim settings.

Getting Started with Development

Setup

  1. Install Node.js
  2. Clone the DevSkim repository
  3. Navigate to the DevSkim-VSCode-Plugin folder from a command line, and install dependencies: npm install

Create VSIX Package

  1. From the DevSkim-VSCode-Plugin folder run: npm run pack-ext

Debug

  1. Open the DevSkim-VSCode-Plugin folder in VS Code
  2. Use the Debug menu in VS code and select `"Clean + Launch VSC Client"

Reference

Clone this wiki locally