Java Reference
In-Depth Information
Find and Highlight usages
As in Java files, you can use the flavors of
Find
and
Highlight usages
actions in
the
Search
menu and right-click context menu to determine where symbols are
being used throughout the current file or project. You can apply these actions to a
variety of different elements, including
HTML
tags
■
CSS
selectors and classes
■
JavaScript functions, parameters, and variables
■
Showing the styles applied to a tag
If you right-click an
HTML
tag and select the
Show Applied Styles for Tag
option,
IDEA
opens a results window listing all the
CSS
styles applied to the tag.
This is particularly helpful if you're including several different levels of stylesheets
or have complex selectors in your stylesheet. From the results window, you can
navigate back to any of the style definitions.
11.5.4
Navigating through web content files
In addition to the features we just discussed,
IDEA
's newfound insight into the
nature of
HTML
, JavaScript, and
CSS
allows for improved navigation. Because
it's now aware of the hierarchy, structure, and makeup of these languages, it can
offer a consistent navigation model across the different types of files supported
by
IDEA
.
Structural views
Each of the relevant file types supports its own variation of the
Structure
window
you've used with Java files. The
Structure
window, as shown in figure 11.26, lets
Figure 11.26
The Structure window brings a
sense of order to your HTML,
allowing you to quickly navigate
through the hierarchy of tags.