Skip to content
Discussion options

You must be logged in to vote
xmap <leader>a  <Plug>(coc-codeaction-selected)
nmap <leader>a  <Plug>(coc-codeaction-selected)

in your vimrc/init.vim first.

V to select Python codes, then <leader>a to fire code actions, you will get the list, choose the Extract Method action:

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@woertsposzibllen4me
Comment options

@fannheyward
Comment options

Answer selected by woertsposzibllen4me
@woertsposzibllen4me
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants