Slick V3.3 manual Extension-Specific Options, Changing the tab and indent styles

Models: V3.3

1 568
Download 568 pages 2.03 Kb
Page 39
Image 39

Extension-Specific Options

Extension-Specific Options

These options are specific to file extensions, and are available on the Extension Options dialog (open the Preferences dialog, expand SlickEdit and click General in the tree, then double-click the File Extension Setup setting). When the Extension Options dialog is displayed, before setting the options, select the ex- tension you wish to affect from the Extension drop-down list.

In addition to the options described below, more settings for the selected language extension are avail- able by pressing the Options button on the Extension Options dialog. Because each of these dialogs is different based on the selected extension, we recommend that you look through these dialogs for any set- tings that you may want to make.

To see a listing of all of the option dialogs and their descriptions, see topics in Chapter 10, SlickEdit Core Dialogs.

Changing the brace style - To change the brace style used for C, C++, C#, Java, and other languages that use braces, click the Options button on the Extension Options dialog, then specify the Begin-End Style that you want to use.

Changing the tab and indent styles:

Indenting with spaces - By default, when you press the Tab key to indent, literal spaces are inser- ted. This is a feature called Syntax Indent. To change the amount of spaces, select the Indent tab, make sure the Indent style is set to Auto, then specify the amount of spaces in the Syntax indent text box.

Indenting with tabs - If you plan to indent your code using tabs, or if you will be editing files that already contain tabs, specify your tab preferences on the Indent tab. Select the option Indent with tabs, then specify the amount of spaces tab characters should have in the Tabs text box.

Note

For C, C++, Java, and similar languages, you can find more indenting options by clicking the Op- tions button on the Extension Options dialog.

Enabling/disabling Syntax Expansion - When you type a keyword, such as if or for, press the space- bar to expand that syntax element, inserting the rest of the if or for statement. This feature is called Syntax Expansion. To turn it off, select the Indent tab, then deselect the option Syntax expansion.

Setting symbol navigation - For C and C++, by default, with each attempt to navigate to a definition

(Ctrl+Dot or Search Go to Definition), you will be prompted for whether you wish to navigate to the definition (proc) or the declaration (proto). To specify that Go to Definition always navigates to one or the other, select the Context Tagging® tab, then select one of the Go to Definition options.

Showing the info for a symbol under the mouse - By default, as the mouse cursor floats over a sym- bol, the information and comments for that symbol are displayed. To turn this behavior off, select the Context Tagging® tab, then deselect the option Show info for symbol under mouse.

Configuring C/C++ preprocessing - For C and C++, your source code base will typically include pre-

17

Page 39
Image 39
Slick V3.3 manual Extension-Specific Options, Changing the tab and indent styles