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

Add support for 'extract variable from method result' #2852

Open
mathieu-pousse opened this issue Dec 16, 2016 · 2 comments
Open

Add support for 'extract variable from method result' #2852

mathieu-pousse opened this issue Dec 16, 2016 · 2 comments

Comments

@mathieu-pousse
Copy link

  • Plugin version (or commit hash): 0.12.1724

  • IDE name and version: ultimate 2016.1

  • Java version: go 1.7

  • OS name and version: ubuntu 16.04

  • What are you trying to do?

Extract a variable from method result (Ctrl + Alt + v from default mapping)

  • What would you expect to happen?

Create multiple variables accordingly to the method definition

  • What happens?

image

That would be nice to have this kind of refactoring because in go, nearly every methods return multiple values

@zolotov
Copy link
Contributor

zolotov commented Dec 16, 2016

It's fixed in https://www.jetbrains.com/go/

@mathieu-pousse
Copy link
Author

mathieu-pousse commented Dec 16, 2016 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

2 participants