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. -
image.pngCtrl
+Alt
+B
-
refactor.pngCtrl
+Alt
+V
-
live Template
image.png -
image.pngCodeCompletion
-
image.pngCtrl
+P
-
在当前文件快速高亮某个变量Ctrl
+Shift
+F7
-
reformate
image.png -
image.pngAlt
+Q
网友评论