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

quickfix for print/println methods #3041

Closed
maxandersen opened this issue Apr 3, 2023 · 5 comments
Closed

quickfix for print/println methods #3041

maxandersen opened this issue Apr 3, 2023 · 5 comments

Comments

@maxandersen
Copy link
Contributor

when writing println("something") it would be great that instead of only complaining it cannot resolve println that it offers to quickfix it to System.out.println("something"); even better static import of System.out and then just put out.println("something"); to keep things compact.

same would apply for print and printf.

@fbricon
Copy link
Collaborator

fbricon commented Apr 3, 2023

alternatively, and I know this doesn't fix this issue but, you can change your way of writing println statements and do "something".sysout instead. postfix completion FTW

@fbricon
Copy link
Collaborator

fbricon commented Apr 3, 2023

Also helpful: adding java.lang.System.out to the list of your "java.completion.favoriteStaticMembers" setting. Won't help with quickfixes, but you'll at least have out available in completion, selecting it will auto import the static import.

@rgrunber
Copy link
Member

@hopehadfield
Copy link
Contributor

@rgrunber that sounds like a good idea. I'll get on that.

@rgrunber
Copy link
Member

I think this addresses the issue enough to close this.

@rgrunber rgrunber added this to the End October 2023 milestone Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

5 participants