|
for Windows and Linux
for OS X
⌘, or ⌘,⌘, or ⌘,⌘, or ⌘,⌥ F7, ⌥F7 or ⌥F7^ ⌥ S, ⌃⌥S or ⌃⌥S
Use this page to enable or disable specific smart keys and to define which actions you want to be invoked automatically. | Item | Description |
|---|
| Home | When this check box is selected, on pressing ↖, ⌘←, ⌃A, ↖, ⌘← or ⌃A↖, ⌘←, ↖ or ⌘←↖, ⌘←, ⌃A, ↖, ⌘← or ⌃AHome, ↖ or ↖Home, ^ A, ⌥ M, ↖, ⌃A, ⌥M, ↖, ⌃A or ⌥M,
the caret is positioned at the first non-space character of
the current line. Pressing ↖, ⌘←, ⌃A, ↖, ⌘← or ⌃A↖, ⌘←, ↖ or ⌘←↖, ⌘←, ⌃A, ↖, ⌘← or ⌃AHome, ↖ or ↖Home, ^ A, ⌥ M, ↖, ⌃A, ⌥M, ↖, ⌃A or ⌥M subsequently moves the caret from the
Smart Home position to the first column and back. | | End (on blank line) | When this check box is selected, on pressing ↘, ⌘→, ⌃E, ↘, ⌘→ or ⌃E↘, ⌘→, ↘ or ⌘→↘, ⌘→, ⌃E, ↘, ⌘→ or ⌃EEnd, ↘ or ↘End, ^ E, ↘, ⌃E, ↘ or ⌃E in an empty line,
the caret is positioned with the indent, which IntelliJ IDEA assumes to be reasonable in
the current code point (indentation is based on the current Code Style Settings). | | Insert pair bracket | Select this check box to have IntelliJ IDEA automatically add a closing round or square bracket
for each typed opening round or square bracket, respectively. | | Insert pair quote | Select this check box to have IntelliJ IDEA automatically add a closing single or double quote
for each typed opening single or double quote, respectively.
| | Reformat block on typing "}" | If this check box is selected, then, on typing the closing curly brace, the enclosed code block is
reformatted automatically, if the formatting of this code block does not match the selected
code style. | | Use 'CamelHumps' words | Select this check box to have IntelliJ IDEA discern separate words within CamelHump names.
Words within a name should start with a capital letter or an underscore. This option impacts some
editor actions, for example:
- Caret Move
(⌥→ or ⌥→⌥→ or ⌥→⌥→ or ⌥→^ Right, ⌃→ or ⌃→^ Right, ⌥ F, Escape, Ctrl F, ⌃→, ⌥F, ⎋, ⌃F, ⌃→, ⌥F or ⎋, ⌃F/⌥← or ⌥←⌥← or ⌥←⌥← or ⌥←^ Left, ⌃← or ⌃←^ Left, ⌥ B, Escape, Ctrl B, ⌃←, ⌥B, ⎋, ⌃B, ⌃←, ⌥B or ⎋, ⌃B)
- Caret Move with Selection
(⌥⇧→ or ⌥⇧→⌥⇧→ or ⌥⇧→⌥⇧→ or ⌥⇧→^ ⇧ Right, ⌃⇧→ or ⌃⇧→^ ⇧ Right, ⌃⇧→ or ⌃⇧→/⌥⇧← or ⌥⇧←⌥⇧← or ⌥⇧←⌥⇧← or ⌥⇧←^ ⇧ Left, ⌃⇧← or ⌃⇧←^ ⇧ Left, ⌃⇧← or ⌃⇧←)
- Select Word at Caret (⌥↑ or ⌥↑⌘W or ⌘W⌃⇧↑ or ⌃⇧↑^ W, ⌃W or ⌃W^ ⌥ W, ⌃⌥W or ⌃⌥W)
- Delete to Word Start/End (⌥⌫ or ⌥⌫⌥⌫ or ⌥⌫⌘⌫ or ⌘⌫^ Backspace, ⌃⌫ or ⌃⌫^ Backspace, ⌥ Backspace, Escape, Backspace, ⌃⌫, ⌥⌫, ⎋, ⌫, ⌃⌫, ⌥⌫ or ⎋, ⌫ and
⌥⌦ or ⌥⌦⌥⌦ or ⌥⌦⌘⌦ or ⌘⌦^ Delete, ⌃⌦ or ⌃⌦^ Delete, ⌃⌦ or ⌃⌦ respectively)
- Double-clicking
The following editor actions work in a mode opposite to the one established by the
Use 'CamelHumps' words setting:
- Move Caret to Previous Word in Different "CamelHumps" mode
- Move Caret to Previous Word with Selection in Different "CamelHumps" mode
- Move Caret to Next Word in Different "CamelHumps" mode
- Move Caret to Next Word with Selection in Different "CamelHumps" mode
- Delete to Word End in Different "CamelHumps" mode
- Delete to Word Start in Different "CamelHumps" mode
For example, If the check box is selected, the action
Move Caret to Next Word in Different "CamelHumps" mode moves the caret to the
end of word;
if the check box is not selected, then the caret moves to the next CamelHump.
These actions have no default keyboard shortcuts, and are not included in the menus. Thus, they can
be invoked by pressing ⇧⌘A or ⇧⌘A⇧⌘A or ⇧⌘A⌘3 or ⌘3^ ⇧ A, ⌃⇧A or ⌃⇧A^ ⇧ A, ⌃⇧A or ⌃⇧A:

(Refer to the section Navigating to Action)
You can bind them with the shortcuts of your choice as described in the section
Configuring Keyboard Shortcuts.
| |
Surround selection on typing quote or brace | If this check box is selected, the selected text on typing a quote, double-quote or brace,
will be surrounded with these characters. If this check box is not selected, then the typed quotes,
double-quotes or braces will replace the selection. | | Add multiple carets on double ^/⌥
with arrow keys | If this check box is selected, then:
- pressing ^ (for Windows or *NIX) or
⌥ (for Mac OS) twice plus up/down arrow keys leads
to creating multiple carets.
- pressing ^ (for Windows or *NIX) or
⌥ (for Mac OS) twice plus left/right arrow keys or
Home/End leads to creating a selection.
| | Enter | Use this area to define the actions to be invoked by pressing ⏎ or ⏎⏎ or ⏎⏎ or ⏎Enter, ⏎ or ⏎Enter, ^ M, ⏎, ⌃M, ⏎ or ⌃M.
-
Smart Indent - select this check box to have IntelliJ IDEA add a new line and
position the caret in it, with the indent that IntelliJ IDEA assumes to be reasonable in the
current point of code (indentation is based on the current Code Style
settings).
If the check box is cleared, upon pressing ⏎ or ⏎⏎ or ⏎⏎ or ⏎Enter, ⏎ or ⏎Enter, ^ M, ⏎, ⌃M, ⏎ or ⌃M in a blank line,
IntelliJ IDEA adds a new line and positions the caret at the current non-space character column.
- Insert pair '}' - select this check box to have IntelliJ IDEA automatically
position a closing brace
} at the proper column when ⏎ or ⏎⏎ or ⏎⏎ or ⏎Enter, ⏎ or ⏎Enter, ^ M, ⏎, ⌃M, ⏎ or ⌃M is
pressed in an empty line. In this case IntelliJ IDEA seeks backward for the nearest unclosed opening
brace { and places the closing one at the corresponding indentation level. - Insert documentation comment stub - this check
box defines the behavior on pressing ⏎ or ⏎⏎ or ⏎⏎ or ⏎Enter, ⏎ or ⏎Enter, ^ M, ⏎, ⌃M, ⏎ or ⌃M after an opening documentation
tag.
- If this check box is selected, IntelliJ IDEA generates a documentation
comment stub.
For the method comments, this stub contains the required tags
(@param tags for each method parameter, @return, or
@throws). Refer to Creating Documentation Comments and
Creating JSDoc Comments for details.
For the function comments, this stub contains the required tags
(@param tags for each parameter declared in the signature,
and @return). Refer to
,
Creating JSDoc Comments for details.
- If this check box is not selected, only the closing tag is generated.
Note that this check box refers to JavaScript,
Java and the other languages that have special
beginning of documentation comments.
| | Backspace | Use this drop-down list to define the actions to be invoked by pressing
⌫, ⇧⌫, ⌫ or ⇧⌫⌫, ⇧⌫, ⌫ or ⇧⌫⌫, ⇧⌫, ⌫ or ⇧⌫Backspace, ⇧ Backspace, ⌫, ⇧⌫, ⌫ or ⇧⌫Backspace, ⇧ Backspace, ⌫, ⇧⌫, ⌫ or ⇧⌫ key. The available options are:
- Disabled - pressing ⌫, ⇧⌫, ⌫ or ⇧⌫⌫, ⇧⌫, ⌫ or ⇧⌫⌫, ⇧⌫, ⌫ or ⇧⌫Backspace, ⇧ Backspace, ⌫, ⇧⌫, ⌫ or ⇧⌫Backspace, ⇧ Backspace, ⌫, ⇧⌫, ⌫ or ⇧⌫
returns the caret by one position at a time.
- To nearest indent position
- To proper indentation
| | Reformat on paste | Use this drop-down list to specify how to place pasted code blocks. The available options are:
- None - The pasted code is inserted at the caret location as plain text
without any reformatting or indenting.
- Indent Block - The pasted code block is positioned at the proper
indentation level, according to the current Code Style Settings, but its inner structure is not changed.
- Indent Each Line- Each line of the pasted code block is positioned at
the proper indentation level, according to the current
Code Style Settings.
- Reformat Block- The pasted code block is reformatted according to the
currentCode Style Settings.
This feature is applicable to lines that contain the trailing line feed characters.
| | XML/HTML | In this area, define the actions to be invoked automatically when editing XML or
HTML code.
| | CSS | In this area, define the selection of CSS identifiers/classes:
| | AngularJS | Use this area to define the behavior of AngularJS:
- Auto-insert white space in the interpolation: If this check box is selected, a white space is automatically inserted between the braces:
{{ }}.
If this check box is not selected, the white space is not inserted: {{}}.
| |
Javadoc | In this area, define the behavior of the closing tags in Javadoc.
-
Automatically insert closing tag - select this check box to make IntelliJ IDEA insert
closing tag automatically, after typing
>. So doing, the caret rests inside the tag.
For example, if you type
<b>, the closing tag</b> will be generated automatically.
| | Insert pair '%>' on Enter in JSP | Select this check box to have IntelliJ IDEA automatically position the opening angle bracket <
at the proper column when entered in an empty line in JSP code.
In this case IntelliJ IDEA seeks backward for the nearest unclosed angle bracket and places a
closing one > at the corresponding indentation level. | | PHP | Use this area to define the behavior of the editor in the PHP context:
-
Enable smart function parameter completion: when this check box is selected,
you can use the
“automatic” live template that provides completion lists for the parameters
passed into functions, methods, or class constructors.
To invoke the magic live template, type the params keyword as the first parameter
in the call of the function, method, or class:

IntelliJ IDEA displays a live template where the parameters are automatically completed with the variable names defined in the function declaration.
To move to the next parameter, press ⏎ or ⏎⏎ or ⏎⏎ or ⏎Enter, ⏎ or ⏎Enter, ^ M, ⏎, ⌃M, ⏎ or ⌃M or ⇥ or ⇥⇥ or ⇥⇥ or ⇥Tab, ⇥ or ⇥Tab, ⇥ or ⇥.
To move to the previous parameter, press ⇧⇥ or ⇧⇥⇧⇥ or ⇧⇥⇧⇥ or ⇧⇥⇧ Tab, ⇧⇥ or ⇧⇥⇧ Tab, ⇧⇥ or ⇧⇥.
The completion list contains variables from a local scope in the next order: with the same type, with a similar name, defined nearby.
You can always switch to the usual completion mode by pressing ⌃Space or ⌃Space⌃Space or ⌃Space⌃Space or ⌃Space^ Space, ⌃Space or ⌃Space⌥ Slash, ⌥/ or ⌥/
or just typing anything which is not in the list. Variables with similar names are inserted automatically.
- Select variable name without $ sign on double click: if this check
box is selected, only the text that follows the $ sign is selected on double
click.
If you you need to select a variable name with $, just place
the cursor before the $ sign and double click.
|
See AlsoProcedures:
Reference:
|