Skip to content

Bulk generation would be useful #597

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
yaohaizh opened this issue Jul 26, 2018 · 6 comments
Closed

Bulk generation would be useful #597

yaohaizh opened this issue Jul 26, 2018 · 6 comments

Comments

@yaohaizh
Copy link
Collaborator

From the thumbups emoji of this closed issue:

#100

bulk generation like in jetbrains or eclipse would be pretty useful also.

And would be nice to have generators not only for getters and setters, but also for constructors, toString, hashCode, equals and overrides

@fbricon
Copy link
Collaborator

fbricon commented Jul 26, 2018

@yaohaizh
Copy link
Collaborator Author

yaohaizh commented Nov 26, 2018

  • Add override/implement methods code generation

@fbricon
Copy link
Collaborator

fbricon commented Dec 12, 2018

Bulk generation of getters/setters is now available. The associated source action kind is "source.generate.accessors".
Keybinding is partially broken at the vscode level though. Narrator's voice: it was not

Adding something like this to one's keybinding.json should do the trick

{
	"key": "shift+alt+g", //g for generate
	"command": "editor.action.codeAction",
	"args": {
		"kind": "source.generate", //or "source.generate.accessors" to narrow it down 
	}
}

@testforstephen
Copy link
Collaborator

testforstephen commented Mar 27, 2019

@yaohaizh
Copy link
Collaborator Author

Close this issue. The left one will be tracked on #972

@xiuluo211314
Copy link

image
open keybinding.json file, and add code like @fbricon said, back to the editor , you can get it!

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

No branches or pull requests

4 participants