27 lines
658 B
ReStructuredText
27 lines
658 B
ReStructuredText
NOTEPAD++
|
|
#########
|
|
|
|
There are two methods to integrate Notepad++ with VSG: using the Run command and using PythonScript.
|
|
|
|
Run Command
|
|
-----------
|
|
|
|
Using the run command requires an update to the %APPDATA%/Notepad++/shortcuts.xml file.
|
|
|
|
In the <UserDefinedCommands> section, add this line
|
|
|
|
::
|
|
|
|
<Command name="Run VSG" Ctrl="no" Alt="no" Shift="no" Key="120">vsg -f "$(FULL_CURRENT_PATH)" --fix</Command>
|
|
|
|
|
|
This macro bound to the <F9> key performs the following steps:
|
|
|
|
1. Save the current buffer
|
|
2. Execute vsg with the --fix option
|
|
|
|
After executing VSG, Notepad++ with prompt to re-read the file if it has changed.
|
|
|
|
PythonScript
|
|
------------
|