Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhaobu opened this issue Jan 11, 2022 · 11 comments
Open

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

zhaobu opened this issue Jan 11, 2022 · 11 comments

Comments

@zhaobu
Copy link

zhaobu commented Jan 11, 2022

🚀 Feature Proposal

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

Motivation

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

Contribution

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

@creazyboyone
Copy link

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

@zhaobu
Copy link
Author

zhaobu commented Jan 22, 2022

非常感谢,按照你的提示的确可以生成英文题目路径
另外附上我的全部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,

@creazyboyone
Copy link

creazyboyone commented Jan 22, 2022 via email

@zhaobu
Copy link
Author

zhaobu commented Jan 23, 2022

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

@creazyboyone
Copy link

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

@ChenJyuan
Copy link

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

@creazyboyone
Copy link

creazyboyone commented Feb 18, 2022 via email

@huxulm
Copy link

huxulm commented Apr 25, 2022

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

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

@creazyboyone
Copy link

creazyboyone commented Apr 25, 2022 via email

@planktonzp
Copy link

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

pull #879

@creazyboyone
Copy link

creazyboyone commented Apr 21, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants