Intellij IDEA 每日提示集锦-201809
Intellij IDEA 每天的 tip of the day 的翻译,每日翻译一个,这里是 2018 年 9 月份的tip of the day。
2018-09-01
To see the inheritance hierarchy for a selected class, press ⌃H (Navigate | Type Hierarchy). You can also invoke the hierarchy view right from the editor to see the hierarchy for the currently edited class.
要查看选中类的继承的层次结构,可使用 Control+H (菜单:Navigate | Type Hierarchy)。你也可以在编辑器右侧显示层次结构视图,显示当前正在编辑类的继承层次结构。
2018-09-02
Right-clicking on a breakpoint marker (on the bar to the left from the text) invokes the speedmenu where you can quickly enable/disable the breakpoint or adjust its properties.
在断点(文本编辑器左侧栏)上右键点击可调出快捷菜单,可快捷禁用/启动断点或者调整断点的属性。
2018-09-03
To easily evaluate the value of any expression while debugging the program, select its text in the editor (you may press a ⌥↑ a few times to efficiently perform this operation) and press ⌥F8.
在调试的时候,想要方便的获取一个表达式的运算结果,在编辑器中选中表达式代码(你可能想要按 option+↑ 几次来应用此次操作),然后按 Option + F8。
2018-09-04
To quickly evaluate the value of any expression while debugging the program, hold Alt and click this expression to see its value and calculate it, call a method, etc.
在调试的时候,想要快速的获取一个表达式的运算结果,按住Alt并点击表达式,可以进行查看值、运行或者调用一个方法等。
2018-09-05
Use Basic Completion (⌃Space) for completing words in text and comments in files of many different types.
All the words from the current file that start with the typed prefix will appear in the lookup list.
使用基本的补全(Control+Space)来补全不同类型文件的文本和注释中的单词。所有当前文件中,以已输入内容作为开头的词,都会显示在待选列表中。
2018-09-06
The shortcuts such as F1 (View | Quick Documentation), ⌘P (View | Parameter Info), ⌘B (Navigate | Declaration) and others can be used not only in the editor but in the code completion popup list as well.
有些快捷键不仅能在编辑器中使用,在代码不全弹出列表中也可以使用,例如:F1 (View | Quick Documentation), Command+P (View | Parameter Info), Command+B (Navigate | Declaration)。
2018-09-07
When using Code Completion, you can accept the currently highlighted selection in the popup list with the period character (.), comma (,), semicolon (;), space and other characters.
The selected name is automatically entered in the editor followed by the entered character.
使用代码补全时,你可以通过使用小数点、逗号、分号、空格和其他符号选中当前高亮的选项。选中的名字会自动输入到编辑器中已输入字符的后边。