This extension uses srcSlice to calculate the slice of a desired variable and visualize information regarding where it is used through out a system.
Install Dependencies
This is a srcML tool extension, if you do not have srcML installed you must install it.
You can download the system installer here.
You will also need to install srcSlice, go here for srcSlice installation instructions.
Finally you will need to install npm to allow compilation and installation of the extension, go here for npm install instructions.
Compile Extension
If you have npm, srcML, and srcSlice installed on your system do the following
# creates a .vsix file
npm install -g @vscode/vsce
# compile the extension
vsce package
# installation
code --install-extension VSIX_FILE
Keyboard Bindings
Refresh Visuals
Windows/Linux: Ctrl + Shift + R
macOS: Cmd + Shift + R
Find Slice
Windows/Linux: Ctrl + Alt + F
macOS: Cmd + Alt + F
Hide Slice
Windows/Linux: Ctrl + Alt + H
macOS: Cmd + Alt + H
Filter Only Selected
Windows/Linux: Ctrl + Alt + K
macOS: Cmd + Alt + K
Show All Entries
Windows/Linux: Ctrl + Alt + L
macOS: Cmd + Alt + L
Get Editor Slices (Slice only from active tabs)
Windows/Linux: Ctrl + Alt + E
macOS: Cmd + Alt + E
Get All Slices (Slice the entire workspace)
Windows/Linux: Ctrl + Alt + A
macOS: Cmd + Alt + A