zoukankan      html  css  js  c++  java
  • VSCode 插件和快捷键(MAC)

    1. 插件

    1. JSON 格式优化---  JSON Tools

       快捷键:

      1). 格式化json字符串

         Mac: Cmd+Option+M

                   win: Ctrl+Alt+M

        2).压缩json

        Mac: Option + M

        win: Alt + M

    2. 自动添加文件头注释---KoroFileHeader

    自定义配置:

    Perferences-->Setting-->setting.json,在文件中插入以下配置

        /***自定义文件头信息***/
        "fileheader.customMade": {
            "Author": "LyraLee",
            "Date": "Do not edit",
            "LastEditTime": "Do not edit",
            "Description": "file content"
        },
        // 默认添加文件头
        "fileheader.configObj": {
            "autoAdd": true, // 默认开启
            "prohibitAutoAdd": [ "json", "md" ]// 禁止自动添加文件头的类型
        },

    2.快捷键

    1. 多行光标操作

       方法1:  option + shift   然后选中多行数据;

       方法2: Common + Shift + P  查找‘cursor’;

            选择 “切换多行修改键(Toggle Mult-cursor Modifier)”;

           Command + 光标可以将光标放到任意位置;

       ⚠️  方法1和2通过(切换多行修改键)来回切换

    2. 打开/新建终端(命令行工具)快捷键

      Control + `  打开/关闭

      Control + shift + `   新建

      ` 是esc下的按键

    3. 多行注释

    option + shift + A  注释/取消注释

  • 相关阅读:
    SPOJ 8093 JZPGYZ
    UVA1030 Image Is Everything
    UVA11996 Jewel Magic
    UVA11922 Permutation Transformer
    UVA1479 Graph and Queries
    P3224 [HNOI2012]永无乡
    UVA11020 Efficient Solutions
    UVA12206 Stammering Aliens
    UVA11107 Life Forms
    UVA11019 Matrix Matcher
  • 原文地址:https://www.cnblogs.com/lyraLee/p/10749271.html
Copyright © 2011-2022 走看看