zoukankan      html  css  js  c++  java
  • vs code中自动添加注释插件koroFileHeader

    github链接及教程:

    https://github.com/OBKoro1/koro1FileHeader

    使用方法:

    1.安装插件koroFileHeader

    2.文件->首选项->设置->搜索fileheader->settings.json编辑

    3.按照上述github教程中添加

      "fileheader.customMade": {} // 头部注释
      "fileheader.cursorMode": {} // 函数注释 

    4.保存退出,重启vscode

    5.快捷键

    ctrl+alt+i 备注抬头

    ctrl+alt+t 备注插入点

    参考了网上的教程,防线这个插件很方便,因此集成在vscode中,添加注释是很方便的。

    我自己的设置如下:基本上是够用了


        "fileheader.customMade": {    //此为头部注释
            "Description": "",
            "FilePath": "Do not edit",
            "Version": "1.0",
            "Autor": "liming",
            "Date": "Do not edit",
            "LastEditors": "liming",
            "LastEditTime": "Do not edit",
        },

        "fileheader.cursorMode": {  //此为函数注释
            "description":"",
            "param": "",
            "return": "",
            "author":"liming",
        }
  • 相关阅读:
    P1019 单词接龙
    P1219 八皇后
    Find a way
    P1056 排座椅
    P1067 多项式输出
    关于前缀和,A
    洛谷P1223
    洛谷P1803
    洛谷P1208
    常用方法 Excel转换为DataSet
  • 原文地址:https://www.cnblogs.com/CodeWorkerLiMing/p/12063510.html
Copyright © 2011-2022 走看看