The Editing tab allows you to configure which editor Coverage Validator will use for editing source code.
The default settings are shown below:
From the Tools menu, or any of the data views in the main tabs, you can right click to edit the source code.
By default, source code is opened in a provided source code editor using syntax colouring, but you can change where you edit code via the drop-down list:
When choosing one of the editors listed, you can request a currently open instance (e.g. the same one you are using to develop your application), or to open a new instance.
SCiTE is included in the list of editors, but there are many text editors that can be used for source code on windows. Wikipedia has a comparison of editors including their programming feature support
We've all got our favourite editors! To use yours:
•Select User defined editor from the list of options enables the fields below
•Enter the Editor path and filename or just Browse choose the executable for your preferred editor
Now when you want to edit source code, that editor will be opened, but typically you'll need to specify some command line arguments with which to start the editor.
By default, just the file name is passed as a command line argument to the editor.
Depending on the editor, you may need to tailor the arguments, for example if you want the file scrolled to a particular line.
The arguments can be specified by adding them to the table provided, one at a time and in the order required
•Add adds a row to the Editor arguments table select an argument Type from the following options
The possible arguments include:
•(Space) Filename appends a space followed by the filename
•Filename appends just the filename
•(Space) Line Number a space followed by the line number
•Line Number just the line number
•Space a space
•(Space) Other a space followed by the text typed in the Value column of the list
•Other just the text typed in the Value column of the list
Only the Other options need an entry in the Value column.
You will need to press Return after entering the value otherwise the entry won't get recognized.
The example below configures NotePad++ to edit a file at the required line using the -n switch
As you modify the arguments an example command line is shown below the list.
Edit a Type or Value by double clicking the entry. The usual controls apply for removing list items:
•Remove removes selected arguments in the list
•Remove All removes all arguments, clearing the list
Alternatively, press to delete selected items, and + to select all items in the list first.
Reset All - Resets all global settings, not just those on the current page.
Reset - Resets the settings on the current page.