Vscode

Emmet

https://www.cnblogs.com/summit7ca/p/6944215.html

E代表HTML标签
E#id代表id属性
E.class1.class2代表class属性
E[attr=val]代有特定属性的标签
E{foo}标签内容是foo
E>N子级
E+N同级元素
^父级
.class隐式标签则(生成结果根据标签上下决定,不固定为 div)
(Grouping)分组操作符(Grouping)
*重复项
$自增量
E>loremN随机字符 N
$$$一个 $ 代表一位,不满补 0
$@N从 N 开始自增
command + shift + p 键入ewrap包装文本

包装文本:

1
2
3
4
-->
<ul>
  <li> 1 </li>
  <li> 2 </li>
...

快捷键

fn + 方向左/右:home/end

多行选择

shift + options + 左键
options + command + 方向键

单行选择

选中当前单词:control + shift + 方向键 光标在单词中按两次选当前单词 按三次选整行
从当前光标选中单词 options + shift + 方向
当前光标位置到行尾 command + shift + 方向键

分屏切换

在当前拆分窗口中切换
control + tab 或者 control + 1 2 3
在拆分窗口之间切换
command + 1 2 3

原文翻译
General 总则
⌘K S键盘快捷键说明文档
⇧⌘P, F1 Show Command Palette显示命令板
⌘P快捷打开指定文件
⇧⌘N New window/instance⇧⌘N新窗口/实例
⌘W关闭窗口
⌘,用户设置
Basic editing 基本编辑
⌘X剪切
⌘C复制
⌥ ↓ / ↑向下/上 移动
⇧⌥↓ / ⇧⌥↑向上/下 复制
⇧⌘K删除行
⌘Enter / ⇧⌘Enter Insert line below/above⌘输入/⇧⌘输入下方/上方的插入行
⇧⌘\ Jump to matching bracket⇧⌘\跳转到匹配的括号
⌘] / ⌘[ Indent/outdent line⌘]/⌘[缩进/突出线
Home / End Go to beginning/end of line起始/结束转到行首/行尾
⌘↑ / ⌘↓ Go to beginning/end of file/⌘ `转到文件的开始/结束
⌃PgUp / ⌃PgDn Scroll line up/down⌃PgUp/⌃PgDn向上/向下滚动行
⌘PgUp /⌘PgDn Scroll page up/down⌘PgUp/⌘PgDn向上/向下滚动页面
⌥⌘[ / ⌥⌘] Fold/unfold region⌥⌘[/⌥⌘]折叠/展开区域
⌘K ⌘[ / ⌘K ⌘] Fold/unfold all subregions⌘K⌘[/⌘K⌘]折叠/展开所有子区域
⌘K ⌘0 / ⌘K ⌘J Fold/unfold all regions⌘K⌘0/⌘K⌘J折叠/展开所有区域
⌘K ⌘C Add line comment⌘K⌘C添加行注释
⌘K ⌘U Remove line comment⌘K⌘U删除行注释
⌘/ Toggle line comment⌘/切换行注释
⇧⌥A Toggle block comment⇧⌥切换块注释
⌥Z Toggle word wrap⌥Z切换换行
Multi-cursor and selection多光标和选择
⌥ + click Insert cursor⌥+单击“插入光标”
⌥⌘↑ Insert cursor above在上方插入光标
⌥⌘↓ Insert cursor below向下插入光标
⌘U Undo last cursor operation⌘U撤消上一个光标操作
⇧⌥I Insert cursor at end of each line selected⇧⌥我将光标插入所选每行的末尾
⌘L Select current line⌘L选择当前行
⇧⌘L Select all occurrences of current selection⇧⌘L选择当前选择的所有匹配项
⌘F2 Select all occurrences of current word⌘F2选择当前单词的所有出现
⌃⇧⌘→ / ← Expand / shrink selection⌃⇧⌘→/☆展开/收缩选择
⇧⌥ + drag mouse Column (box) selection⇧⌥+拖动鼠标列(框)选择
⇧⌥⌘↑ / ↓ Column (box) selection up/down⇧⌥⌘̪/>列(框)选择向上/向下
⇧⌥⌘← / → Column (box) selection left/right⇧⌥⌘</→列(框)选择左/右
⇧⌥⌘PgUp Column (box) selection page up⇧⌥⌘向上翻页选择列(框)
⇧⌥⌘PgDn Column (box) selection page down⇧⌥⌘PgDn列(框)选择页向下
Search and replace搜索和替换
⌘F Find查找
⌥⌘F Replace⌥⌘F更换
⌘G / ⇧⌘G Find next/previous⌘G/⇧G查找下一个/上一个
⌥Enter Select all occurrences of Find match⌥输入选择查找匹配的所有匹配项
⌘D Add selection to next Find match⌘将所选内容添加到下一个查找匹配项
⌘K ⌘D Move last selection to next Find match⌘K⌘D将最后一个选择移动到下一个查找匹配项
Rich languages editing丰富语言编辑
⌃Space Trigger suggestion空间触发建议
⇧⌘Space Trigger parameter hints空间触发器参数提示
⇧⌥F Format document⇧⌥F格式文件
⌘K ⌘F Format selection⌘K⌘F格式选择
F12 Go to DefinitionF12转到定义
⌥F12 Peek Definition⌥F12 Peek定义
⌘K F12 Open Definition to the side⌘K F12侧面开放定义
⌘. Quick Fix⌘. 快速修复
⇧F12 Show References⇧F12显示参考
F2 Rename Symbol重命名符号
⌘K ⌘X Trim trailing whitespace⌘K⌘X修剪尾随空白
⌘K M Change file language⌘K M更改文件语言
Navigation 导航
⌘T Show all Symbols⌘T显示所有符号
⌃G Go to Line…⌃G转到行。。。
⌘P Go to File…⌘P转到文件。。。
⇧⌘O Go to Symbol…⇧⌘O转到符号。。。
⇧⌘M Show Problems panel⇧⌘M显示问题面板
F8 / ⇧F8 Go to next/previous error or warningF8/⇧F8转到下一个/上一个错误或警告
⌃⇧Tab Navigate editor group history⌃⇧选项卡导航编辑器组历史记录
⌃- / ⌃⇧- Go back/forward⌃-/⌃⇧-返回/前进
⌃⇧M Toggle Tab moves focus⌃⇧M切换选项卡移动焦点
Editor management编辑管理
⌘W Close editor⌘W关闭编辑器
⌘K F Close folder⌘K F关闭文件夹
⌘\向右拆分
⌘1 / ⌘2 / ⌘3 Focus into 1⌘1/⌘2/⌘3聚焦成1
st, 2nd, 3rd editor group第二、三编辑组
⌘K ⌘← / ⌘K ⌘→ Focus into previous/next editor group⌘K⌘</⌘K⌘→聚焦到上一个/下一个编辑器组
⌘K ⇧⌘← / ⌘K ⇧⌘→ Move editor left/right⌘K⇧⌘☆⌘/⌘K⇧⌘→向左/向右移动编辑器
⌘K ← / ⌘K → Move active editor group⌘K</⌘K→移动活动编辑器组
File management 文件管理
⌘N New File新建空白文件
⌘O Open File…⌘O打开文件。。。
⌘S Save⌘保存
⇧⌘S Save As…⇧⌘另存为。。。
⌥⌘S Save All⌥⌘全部保存
⌘W Close⌘W关闭
⌘K ⌘W Close All⌘K⌘W全部关闭
⇧⌘T Reopen closed editor⇧⌘T重新打开关闭的编辑器
⌘K Enter Keep preview mode editor open⌘K输入保持预览模式编辑器打开
⌃Tab / ⌃⇧Tab Open next / previous⌃选项卡/⌃⇧选项卡打开下一个/上一个
⌘K P Copy path of active file⌘活动文件的K P复制路径
⌘K R Reveal active file in Finder⌘K R在查找程序中显示活动文件
⌘K O Show active file in new window/instance⌘在新窗口/实例中显示活动文件
Display显示
⌃⌘F全屏切换
⌥⌘0 Toggle editor layout (horizontal/vertical)⌥⌘0切换编辑器布局(水平/垂直)
⌘= / ⇧⌘- Zoom in/out⌘=/⇧⌘-放大/缩小
⌘B Toggle Sidebar visibility⌘B切换侧边栏可见性
⇧⌘E Show Explorer / Toggle focus⇧⌘E显示资源管理器/切换焦点
⇧⌘F Show Search⇧⌘F显示搜索
⌃⇧G Show Source Control⌃⇧G显示源代码控制
⇧⌘D Show Debug⇧⌘D显示调试
⇧⌘X Show Extensions⇧⌘X展会扩展
⇧⌘H Replace in files⇧⌘H在文件中替换
⇧⌘J Toggle Search details⇧⌘J切换搜索详细信息
⇧⌘U Show Output panel⇧⌘U显示输出面板
⇧⌘V Open Markdown preview⇧⌘V打开降价预览
⌘K V Open Markdown preview to the side⌘K V向侧面打开标记预览
⌘K Z Zen Mode (Esc Esc to exit)⌘K Z禅模式(按Esc键退出)
Debug 调试
F9 Toggle breakpointF9切换断点
F5 Start/ContinueF5开始/继续
F11 / ⇧F11 Step into/ outF11/⇧F11进/出
F10 Step over10层台阶
⇧F5 Stop⇧F5停止
⌘K ⌘I Show hover⌘K⌘我显示悬停
Integrated terminal综合终端
Show integrated terminal|⌃显示集成终端
⌃⇧Create new terminal|⌃⇧创建新终端
⌘↑ / ↓ Scroll up/down⌘□□□□□□□□□□□□□□□
PgUp / PgDn Scroll page up/down向上/向下滚动页面
⌘Home / End Scroll to top/bottom⌘主页/结束滚动到顶部/底部
shift + option + a多行注释
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值