Visual Studio Code 快速末尾加分号

1. 装插件: macros

设置添加

"macros": {

        "end_semicolon": [ // 末尾加分号

            "cursorLineEnd",

            {

                "command": "type",

                "args": {

                    "text": ";"

                }

            },

        ],

        "end_colon": [ // 末尾加冒号

            "cursorLineEnd",

            { "command": "type",

                "args": {

                    "text": ":"

                }

            },

        ],

    }

2.设置keybindings.josn

添加:

{

    "key": "alt+;",

    "command": "macros.end_semicolon"

  },

  {

    "key": "alt+shift+;",

    "command": "macros.end_colon"

  },

3.之后就可以按alt+; 或 alt+shift+; 添加分号了

你可能感兴趣的:(Visual Studio Code 快速末尾加分号)