When using Code Completion, you can accept the currently highlighted selection in the popup list with the Tab key. Unlike accepting with the Enter key, the selected name will overwrite the rest of the name to the right of the caret. This can be especially useful for replacing one method or variable name with another.
在使用代码完成功能时,可以用Tab接受当前高亮显示的选项。和用Enter键接受选项不同,所选择的名称会覆盖脱字符右侧名字的其他部分,这在替换方法或变量名时特别有用。
pycharm每日技巧-2
时间: 2024-10-04 00:49:22