Options»Editor Preferences
Use the Editor Preferences dialog box to set up Source window editor preferences.
- Undoable actions per file (next session)—Set the number of actions per file that you can undo.
- Purge undo actions when saving file—Clear the accumulated list of editing actions each time you save a file.
- Record only file modification changes—Select whether LabWindows/CVI includes only source code text modifications in the accumulated list of editing actions. If you enable this option, LabWindows/CVI does not include actions such as changing the cursor position or selecting text in the list of actions you can undo. LabWindows/CVI includes actions that exclude or include lines of code in the list of actions you can undo even if this option is enabled.
- Enable auto indent—Configure LabWindows/CVI to indent text in .c and .h files automatically. Auto indent determines the indentation of code as you type, based on the surrounding context. You can specify indentation options in the Formatting Options dialog box or the Formatting Options (Legacy) dialog box.
LabWindows/CVI also provides batch auto indent with the Edit»Format File or Edit»Format Selection menu items. With batch auto indent, you can format entire files or lines of files at one time. - Use CVI legacy formatting—Enable this option to select formatting options available in versions of LabWindows/CVI prior to 2013. When you enable this option, you can open the Formatting Options (Legacy) dialog box, where you can specify bracket styles for functions and statements. Note that if you enable Use CVI legacy formatting, you cannot automatically format an entire file or selection of lines.
- Formatting Options or Formatting Options (Legacy)—Open a dialog box in which you can select options related to formatting. If you enable Use CVI legacy formatting, this button opens the Formatting Options (Legacy) dialog box. If you do not enable that option, this button opens the Formatting Options dialog box.
- Tab length—Set the number of spaces to use for a tab character.
- Expand TAB key to spaces—Replace tab characters with spaces as you edit the file.
- Whitespace conversion on file save—LabWindows/CVI can perform the following whitespace conversions when you save a file:
- Tabs to Spaces: replace tab characters with spaces. You can use this option if you use another editor or printer that does not support tab characters.
- Leading spaces to tabs: replace leading spaces with tab characters.
- Line terminator for this file and Line terminator for new files—LabWindows/CVI can read source files with any of the commonly used line-termination sequences. It remembers what line-termination sequence was found in each file and uses the same sequence when saving each file. If you want to change that sequence because you want to load the file into another editor, use the Line Terminator option as follows:
- If you want to load a text file into DOS/Windows editors, select CR/LF termination.
- If you want to load a text file into a UNIX editor, select LF termination.
- If you want to load a text file into a Macintosh editor, select CR termination.
- Show function prototypes and struct/union fields while typing—Select whether LabWindows/CVI shows the prototype of the function when you type the open parenthesis after a function name.
- Move cursor to end of pasted text—Put the cursor at the end of the pasted text. Disable this option to put the cursor at the beginning of the pasted text.
- Show collapsible regions—Enable LabWindows/CVI to display a column in the Source window in which plus/minus boxes appear next to blocks of code. Use the plus/minus boxes to expand and collapse blocks of code.