@@ -123,11 +123,12 @@ Yep! That's all :)
123123
124124### Refactor
125125
126- - ` JavaRefactorExtractVariable ` - Create a variable from value at cursor
126+ - ` JavaRefactorExtractVariable ` - Create a variable from value at cursor/selection
127127- ` JavaRefactorExtractVariableAllOccurrence ` - Create a variable for all
128- occurrences from value at cursor
129- - ` JavaRefactorExtractConstant ` - Create a constant from the value at cursor
130- - ` JavaRefactorExtractMethod ` - Create method from the value at cursor
128+ occurrences from value at cursor/selection
129+ - ` JavaRefactorExtractConstant ` - Create a constant from the value at cursor/selection
130+ - ` JavaRefactorExtractMethod ` - Create a method from the value at cursor/selection
131+ - ` JavaRefactorExtractField ` - Create a field from the value at cursor/selection
131132
132133### Settings
133134
@@ -220,31 +221,37 @@ require('java').profile.ui()
220221
221222### Refactor
222223
223- - ` extract_variable ` - Create a variable from value at cursor
224+ - ` extract_variable ` - Create a variable from value at cursor/selection
224225
225226``` lua
226227require (' java' ).refactor .extract_variable ()
227228```
228229
229230- ` extract_variable_all_occurrence ` - Create a variable for all occurrences from
230- value at cursor
231+ value at cursor/selection
231232
232233``` lua
233234require (' java' ).refactor .extract_variable_all_occurrence ()
234235```
235236
236- - ` extract_constant ` - Create a constant from the value at cursor
237+ - ` extract_constant ` - Create a constant from the value at cursor/selection
237238
238239``` lua
239240require (' java' ).refactor .extract_constant ()
240241```
241242
242- - ` extract_method ` - Create method from the value at cursor
243+ - ` extract_method ` - Create method from the value at cursor/selection
243244
244245``` lua
245246require (' java' ).refactor .extract_method ()
246247```
247248
249+ - ` extract_field ` - Create a field from the value at cursor/selection
250+
251+ ``` lua
252+ require (' java' ).refactor .extract_field ()
253+ ```
254+
248255### Settings
249256
250257- ` change_runtime ` - Change the JDK version to another
0 commit comments