Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

get en name from desc.url#724

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

assumecs
Copy link

One might want to view the desc in Chinese. But the file name in Chinese which auto generated will cause problems when compile/debug on Windows with g++/gdb of Cygwin or MinGW.
It can be solved like this:

"leetcode.filePath": {"cpp": {"folder":"","filename":"${id}.${ext}"  }}

But maybe it's better to add an en option.

"leetcode.filePath": {"cpp": {"folder":"","filename":"${id}.${name_en}.${ext}"  }}

The name_en is parsed from desc url. There might be some better source.

@jdneo
Copy link
Member

Hi@assumecs,

Thank you for contribution. One concern is about thename_en. Since it might break if LeetCode changes the URL format. Do we have any other options to get the english name?

@assumecs
Copy link
Author

Hi@jdneo :
Thank you for reply.You're right, it's risky to parse the url.
I've found the property slug in leetcode-cli.It might be a better way to get the English filename#725 .

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@assumecs@jdneo

[8]ページ先頭

©2009-2025 Movatter.jp