-
Notifications
You must be signed in to change notification settings - Fork 119
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.
The DevSkim VS Code plugin can be installed from the VS Code Extension Marketplace. 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 including specifying custom rules.
- Install the Node
- Clone the DevSkim repository
- Navigate to the DevSkim-VSCode-Plugin folder from a command line, and install needed dependencies:
npm install
- From the DevSkim-VSCode-Plugin folder run:
npm run pack-ext
- Open the DevSkim-VSCode-Plugin folder in VS Code
- Use the Debug menu in VS code and select "Clean + Launch VSC Client"