Skip to content

how to change templates #469

@zWatch

Description

@zWatch

在目录 shengchen.vscode-leetcode-0.15.7\node_modules\vsc-leetcode-cli\templates 下
我改变了templates下的detailed.tpl,为了避免重复
像这样

${comment.singleLine} @lc code=start
#include <vector>
#include <list>
#include <iostream>
#include <map>
#include <stack>
#include <bitset>
#include <string>
#include <algorithm>
${code}
${comment.singleLine} @lc code=end

int main(){
    Solution s;
    //std::cout<<s<<std::endl;
    return 0;
}

可是当我再次打开vscode时,它又变回了原样。
(是否可以添加自定义模板功能)
像这样

"leetcode.filePath": {
        ...
        "cpp": {
              ...
              "filetemplate":"my_cpp_template"
        }
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy