Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Is there an option to change the name of the generated file #46

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

Closed
fuermosi777 opened this issue Jun 14, 2017 · 2 comments
Closed

Is there an option to change the name of the generated file #46

fuermosi777 opened this issue Jun 14, 2017 · 2 comments
Labels

Comments

@fuermosi777
Copy link

Problem Summary

Currently run leetcode show xx -g -x it will generate a file named "xx.xxx-xx-xx.java". However, Intellij IDEA will throw an error:

Error:(1, 8) java: class Solution is public, should be declared in a file named Solution.java.

Is there an option so that user can generate a file named "Solution.java"?

Thanks!

@skygragon
Copy link
Owner

@fuermosi777 Personally I would strongly recommend you use other light-weight text editors instead of those IDEs like eclipse or IDEA. The purpose of leetcode-cli is trying to boost your coding experience beyond leetcode.com, but still obey the principle to keep you away from the dependency on the IDEs. See http://www.jianshu.com/p/48295edbf42e if helps.

@fuermosi777
Copy link
Author

Thanks

pennz pushed a commit to pennz/leetcode-cli that referenced this issue Aug 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants