Editing
Tips
- Window Focus
- The
Esc
key in any tool window moves the focus to the editor. -
Shift + Esc
moves the focus to the editor and also hides the current (or last active) tool window. - The
F12
key moves the focus from the editor to the last focused tool window.
Ctrl
+Alt
+T
When you want to catch exceptions thrown by some code fragment, select it in the editor, pressCtrl
+Alt
+T
(Code
|Surround With
) and choosetry / catch
. The catch blocks for all the exceptions thrown inside the block will be generated automatically.
You can customize the bodies of the generated catch blocks on the Code tab ofFile | Settings |Editor| File and Code Templates
.
Use other items in the list to surround with other constructs.-
Ctrl
+Alt
+B
image.png -
Ctrl
+Alt
+V
refactor.png
image.png
2018年6月1日
2018年6月1日
-
live Template
image.png -
CodeCompletion
image.png -
Ctrl
+P
image.png -
Ctrl
+Shift
+F7
在当前文件快速高亮某个变量 -
reformate
image.png -
Alt
+Q
image.png