当前位置:网站首页>DevEco Studio 3.0编辑器配置技巧篇
DevEco Studio 3.0编辑器配置技巧篇
2022-06-28 13:35:00 【大前端之旅】
DevEco Studio 3.0编辑器配置技巧篇
作者:坚果
公众号:“大前端之旅”
OpenHarmony布道师,InfoQ签约作者,CSDN博客专家,华为云享专家,阿里云专家博主,51CTO博客首席体验官,开源项目GVA成员之一,专注于大前端技术的分享,包括Flutter,鸿蒙,小程序,安卓,VUE,JavaScript。
俗话说的好,工欲善其事,必先利其器,编辑器在之前都安装好了,那么如何更高效的使用它也是一个问题,今天就给大家汇总一下,我认为对自己有用的。
我的版本

1.提示忽略大小写

2.设置字体相关
搜索 font

3.取消注释斜体并修改注释的颜色

4.设置主题

5.代码格式化
支持对选定范围的代码或者当前整个文件进行代码格式化操作,可以很好的提升代码的美 观度和可读性。
• 使用快捷键 Ctrl + Alt + L 可以快速对选定范围的代码进行格式化。
• 使用快捷件 Ctrl + Alt + Shift + L 可以快速对当前整个文件进行格式化。
6.其他快捷键
下面给出我汇总的快捷键
| 快捷键 | Windows | Mac |
|---|---|---|
| 代码高亮 | File >Settings或 快捷键Ctrl+Alt+S | DevEco Studio > Preferences, 快捷键为Command+英文逗号 |
| 代码自动跳转 | 按住Ctrl键 | 按住Ctrl键 |
| 代码格式化 | Ctrl + Alt + L,可以快速对选定范围的代码进行格式化。 Ctrl + Alt + Shift + L,可以快速对当前整个文件进行格式化 | Command+Option +L,可以快速对选定范围的代码进行格式化。 Command+Option+L,可以快速对当前整个文件进行格式化 |
| 代码折叠 | Ctrl + 加号键 | Command+Option+加号键 |
| 代码快速注释 | Ctrl+/ | Command+/ |
| 代码结构树 | Alt + 7 / Ctrl + F12 | Command+7 |
| 代码查找 | 两次Shift | 两次Shift |
| 查看Java接口文档 | Ctrl+Q | F1 |
总结
本文主要整理一些常用的编辑器配置技巧,希望对大家有用,然后希望大家坚持学习。好的,拜拜!
边栏推荐
- Elastic box auto wrap demo
- Jupyter notebook中添加虚拟环境
- 2022年中国运维安全产品市场规模及发展趋势预测分析
- Jerry's wif interferes with Bluetooth [chapter]
- China Radio and television 5g package is coming, lower than the three major operators, but not as low as expected
- If a programmer goes to prison, will he be assigned to write code?
- 5A同步整流芯片 20V转12V2A/5V4.5A大电流 24W大功率同步整流芯片 大电流降压IC FS2462
- Yii2 writing the websocket service of swoole
- 嵌入式设计与开发项目-液位检测告警系统
- MySQL multi table joint query
猜你喜欢

yii2编写swoole的websocket服务

泛海微FH511单片机IC方案小家电LED照明MCU丝印FH511

中国数据库技术大会(DTCC)特邀科蓝SUNDB数据库专家精彩分享

PCB understand Wang, are you? I am not

New product experience: Alibaba cloud's new generation of local SSD instance I4 open beta

初识exception

Hubble数据库x某股份制商业银行:冠字号码管理系统升级,让每一张人民币都有 “身份证”

Websocket automatically disconnects in 1 minute

程序员坐牢了,会被安排去写代码吗?

China Radio and television 5g package is coming, lower than the three major operators, but not as low as expected
随机推荐
Data analysis - promoter evolution analysis
Mobile web training day-2
栅格矢量数据的裁剪
初识exception
PostgreSQL surpasses MySQL
移动Web实训DAY-2
APP冷热启动专项测试
Commonly used "redmine" for # test bug
Successful cases of rights protection of open source projects: successful rights protection of SPuG open source operation and maintenance platform
Kubernetes 深入理解Kubernetes(二) 声明组织对象
How to open an account of Huatai Securities? How to handle the account opening is the safest
为什么越来越多的用户放弃 Swagger,选择Apifox
1015. picking flowers
The company leader said that if the personal code exceeds 10 bugs, he will be dismissed. What is the experience?
PHP obtains the beginning and end time of the month according to the month and year
My hematemesis collection integrates script teaching from various classic shell books. As Xiaobai, come quickly
Special test for cold and hot start of app
PHP抓取网页获取特定信息
BERT为何无法彻底干掉BM25??
(原创)【MAUI】一步一步实现“悬浮操作按钮”(FAB,Floating Action Button)