-
Notifications
You must be signed in to change notification settings - Fork 11
Installation
David Pokora edited this page May 14, 2019
·
2 revisions
Before installing the Slither extension for Visual Studio Code, you must install:
- Slither as an accessible command line tool: visit Slither's GitHub Page for more information.
- Visual Studio Code
- Optional: Any desired build/test frameworks supported by Slither, such as Truffle.
In order to install the Slither extension for Visual Studio Code from the marketplace:
- Open Visual Studio Code
- Click on the Extensions icon on the action bar
- Search for "Slither" and a result should appear from the publisher "Trail of Bits".
- Install the extension and reload Visual Studio Code.
In order to install the Slither extension for Visual Studio Code from source:
- You must have
npm
installed. - Clone this repository
- Open the repository in Visual Studio Code
- In the menu, click
Terminal -> New Terminal
and typenpm i
into the resulting terminal to install all dependencies. - To run the extension in debug mode, you can simply click F5, creating a new Visual Studio Code window with the extension activated.
- To run the extension in release mode:
- Ensure
vsce
is installed withnpm install -g vsce
- Run the
vsce package
command within the Visual Studio Code terminal to create a VSIX package within the root of the repository directory. - VSIX files can then be installed in the Extensions tab of Visual Studio Code, under the
...
menu.
- Ensure