vscode-leetcode icon indicating copy to clipboard operation
vscode-leetcode copied to clipboard

leetcode.filePath 希望增加英文题目路径

Open zhaobu opened this issue 2 years ago • 11 comments

🚀 Feature Proposal

大部分编程语言都不支持中文目录,希望能自动生成英文目录路径

Motivation

根据 自定义题目文件的相对文件夹路径和文件名的描述, 如果使用${name}来让插件自动解析,就会生成中文路径. 希望就算是中文用户登录leetcode-cn,解析出来的题目也是英文的

Contribution

Please describe the solution if you'd like to submit a PR.

zhaobu avatar Jan 11 '22 07:01 zhaobu

设置这个就变成英文了 "leetcode.useEndpointTranslation": false,

creazyboyone avatar Jan 16 '22 09:01 creazyboyone

非常感谢,按照你的提示的确可以生成英文题目路径 另外附上我的全部leetcode 插件的设置

 "leetcode.workspaceFolder": "/home/liwei216/code/leetcode_go/check",
  "leetcode.defaultLanguage": "golang",
  "leetcode.endpoint": "leetcode-cn",
  "leetcode.hint.configWebviewMarkdown": false,
  "leetcode.useWsl": true,
  "leetcode.editor.shortcuts": [
    "submit",
    "test",
    "solution",
    "description",
    "star"
  ],
  "leetcode.filePath": {
    "golang": {
      // 相对路径
      "folder": "${tag}/${id}.${name}",
      // 文件名
      "filename": "${id}.${name}.${ext}"
    }
  },
  "leetcode.hint.commandShortcut": false,
  "leetcode.showDescription": "None",
  "leetcode.hint.commentDescription": false,
  "leetcode.useEndpointTranslation": false,

zhaobu avatar Jan 22 '22 05:01 zhaobu

陌生人发邮件来了

creazyboyone avatar Jan 22 '22 05:01 creazyboyone

不过设置"leetcode.useEndpointTranslation": false, 后,全部都变成英文了, 还是希望生成的题目能是中文的

zhaobu avatar Jan 23 '22 14:01 zhaobu

所以我都是跳转到网页看题目:)

creazyboyone avatar Jan 28 '22 13:01 creazyboyone

同样希望有这样的功能,生成文件名时可以选择英文文件名。这样方便在本地对自己的代码调试

ChenJyuan avatar Feb 18 '22 15:02 ChenJyuan

陌生人发邮件来了

creazyboyone avatar Feb 18 '22 15:02 creazyboyone

不过设置"leetcode.useEndpointTranslation": false, 后,全部都变成英文了, 还是希望生成的题目能是中文的

同样遇到这个需求。中文的文件名对编译和调试确实不太友好。希望大佬们能增加一下选项。thanks!!!

huxulm avatar Apr 25 '22 05:04 huxulm

陌生人发邮件来了

creazyboyone avatar Apr 25 '22 05:04 creazyboyone

调整了一下IProblem的结构, 增加了enName字段来实现了这个需求

pull #879

planktonzp avatar Apr 21 '23 03:04 planktonzp

陌生人发邮件来了

creazyboyone avatar Apr 21 '23 03:04 creazyboyone