Fri 20 Nov 2009
If you’re constantly opening files from certain directories, create aliases for those directories to save time. To create a directory alias, from the main menu, click Tools > Options, expand Editing and select Global Aliases. Click New, enter a short text snippet that you can easily remember for the Alias Name, then click OK. Back on the Options dialog, select the new alias, then enter the complete directory path for the alias in the text box on the right. Click OK on the Options dialog. Now you can use the alias in directory fields on various dialogs in SlickEdit (like File > Open): simply type the Alias Name and press Ctrl+Space to expand it.
Language-specific aliases are similar to directory aliases except they can be used in edit windows for any frequently used text, like comment headers and language structures.
To create a language-specific alias, from the main menu, click Tools > Options > Languages, expand your language category and language, then select Aliases. On the Alias option page, click New and enter a short text snippet that you can easily remember for the alias name, then click OK. Back on the Options dialog, select the new alias, then enter the text substitution for the alias in the text box on the right. Click OK on the Options dialog.
Now when you have a buffer or file open in that language, you can use the alias by typing the identifier and pressing Ctrl+Space.
Alias from Selection
A quick way to create a language-specific alias is to create it from a selection. Select some text in the editor, then right-click and select Create Alias from the context menu. Enter a name for the alias and click OK. The Options dialog appears, open to the Language-Specific Alias Options for the current language, and showing the new alias. Click OK on the Options dialog.