-
- 跨语言跳转:Command+Option+B(Windows为Ctrl+Alt+B)
- 选中代码格式化:Option+Shift+Command +L(Windows为Ctrl + Alt + L)
- 不需要格式化代码片段:
-
代码前增加 ://@formatter:off
-
代码后增加://@formatter:on
- 代码中是配置code-linter.json5文件,选中code-linter.json5文件右键选择Apply CodeLinter Style Rules,代码格式化规则将与已配置的code-linter.json5文件中相关规则保持一致
- 代码注释:Command+/(Windows为Ctrl+/)
- 函数注释:/**+回车
- C++文件同时支持使用“//!”+回车
- 清除未使用的import,并根据设置的规则对import进行合并或排序:Control+Option+O(Windows为Ctrl+Alt+O)
- 打开代码结构树:Command+7(Windows为Alt + 7 / Ctrl + F12)
- 查找某个对象(变量、函数或者类等功能:Option + F7(Windowst为Alt +F7)
- 快速覆写父类:光标放于子类定义位置,Command+O(Ctrl+O),选择需要复写的对象(方法、变量等)
- 快速生成构造器:Command+N(Windows为Alt+Insert),弹窗中选择Constructor
- 快速生成get/set方法:Command+N(Windows为Alt+Insert),弹窗中选择Getter and Setter
- 在Index文件中快速生成声明信息:Command+N(Windows为Alt+Insert),弹窗中选择Declarations,按住Ctrl并选择需要声明的变量名、方法名、接口名、类名等- | | |
posted @
2024-07-11 19:03
梦去的地方
阅读(
263)
评论()
收藏
举报