Summary: | [11][quick assist][extract local] Allow for immediate use of var when extracting variable | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Alex Henry <tukkek> |
Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | noopur_gupta |
Version: | 4.12 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Alex Henry
2019-06-22 10:29:11 EDT
See https://twitter.com/noopur2507/status/1052867987424903168. Once checked, the checkbox remembers the state so you can directly extract to var the next time. Hello, using the refactoring tool does indeed work and remembers if that option was checked or not but I opened this issue with the intent of having this on the much more convenient "content assist" action (with the in-editor drop-down menu). Currently, using the content assist, the result is always "Object<Parameter> name". Would it be possible for the content-assist functionality to check whether the "declare type as var" option is checked or not in the "Extract variable" dialog? Or alternatively, through a new preference or other method as suggest previously? Thanks very much for the consideration and great IDE! That's quick assist (Ctrl+1) functionality. Keeping the bug open for using 'var' with the quick assist. |