Replies: 1 comment
-
You can call E.g with keymaps like these.: vim.keymap.set('v', 'crm', [[<ESC><CMD>lua require('jdtls').extract_method(true)<CR>]], { silent = true })
vim.keymap.set({"n", "v"}, "<a-CR>", vim.lsp.buf.code_action, {})) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
It looks like "extract method" refactoring has quite a limited capabilities, but I am not sure if I have everything set up correctly.
Imagine for example that we are going to extract the whole method body into other method (a useless move in reality, but good as an example here).
Is jdtls capable of doing such an extraction? Or is it suitable only for simple extractions like one single statement (which is working fine) ?
Beta Was this translation helpful? Give feedback.
All reactions