Java Reference
In-Depth Information
mouse gesture. You can select from any of the commands available in IDEA , and
you can create as many quick lists as you like.
To create a quick list, bring up the Keymap settings panel and locate the
Quick List section to the right of the keymaps you've defined. Click its Add but-
ton, and specify a name and description. Then pick the options you wish to
include, in the order you want them to appear.
An additional option in the quick list editor available to 5.0
users only lets you add menu separators. These help visually
group your actions into related functions, making long lists eas-
ier to use.
Once you've defined a quick list, you need to map it to a key-
stroke or mouse gesture in order to use it in IDEA . All the quick
lists you've created appear under the Quick Lists node of the
Action tree in the Keymap Settings area. You assign keys to
quick lists just as you do for other types of actions. An example of
a quick list in action is shown in figure 12.8.
Figure 12.8
Quick lists let
you create
custom pop-up
menus anywhere
in IDEA.
12.5 Working with non-Java file types
IDEA lets you work with files other than Java, including XML , HTML , JSPs, and
plain text files. Although the editor's convenience features are primarily geared
around Java, it has notable support for XML files and JSP s (discussed in
chapter 11).
IDEA uses the file's extension to determine the type of file it's dealing with. If
the extension is unrecognized, IDEA won't allow you to open the file in the editor.
A file's type also determines how the code is displayed in the editor and what
color scheme settings are used. In the IDE Settings , you can use the File Types
options to control how IDEA works with such files.
12.5.1
Modifying file types settings
IDEA comes with a number of predefined file types, but not all of them are edit-
able. Java class and source files, JSP files, text files, archive files, XML files, HTML
files, and IDEA GUI designer form files are all integral to the editor and are there-
fore off limits to editing or removal. You can edit the remaining file type defini-
tions, including JavaScript, IDL , and user-defined file types.
 
 
 
 
 
 
Search WWH ::




Custom Search