mini_program
  • Introduction
  • Miscellaneous 杂项
  • editor shortcuts 微信web开发者工具快捷键
  • syntax
    • js
    • json
    • wxml
    • wxss
  • create page
Powered by GitBook
On this page
  • 1. 格式调整
  • 2. 光标相关
  • 3. 界面相关

Was this helpful?

editor shortcuts 微信web开发者工具快捷键

PreviousMiscellaneous 杂项Nextsyntax

Last updated 5 years ago

Was this helpful?

reference:

tips:一般mac下的【Command.⌘】 对应window下的【Ctrl】

以下快捷键的功能是拷贝自官方文档,考证为window下的快捷键列表。

1. 格式调整

快捷键 -- 描述

Ctrl+S:保存文件

Ctrl+[, Ctrl+]:代码行缩进

Ctrl+Shift+[, Ctrl+Shift+]:折叠打开代码块

Ctrl+C Ctrl+V:复制粘贴,如果没有选中任何文字则复制粘贴一行

Shift+Alt+F:代码格式化

Alt+Up,Alt+Down:上下移动一行

Shift+Alt+Up,Shift+Alt+Down:向上向下复制一行

Ctrl+Shift+Enter:在当前行上方插入一行

Ctrl+Shift+F:全局搜索

2. 光标相关

快捷键 -- 描述

Ctrl+End:移动到文件结尾

Ctrl+Home:移动到文件开头

Ctrl+i:选中当前行

Shift+End:选择从光标到行尾

Shift+Home:选择从行首到光标处

Ctrl+Shift+L:选中所有匹配

Ctrl+D:选中匹配

Ctrl+U:光标回退

3. 界面相关

快捷键 -- 描述

Ctrl + \:隐藏侧边栏

Ctrl + m: 打开或者隐藏模拟器

https://mp.weixin.qq.com/debug/wxadoc/dev/devtools/edit.html