Skip to content

How do i extract a method ? #5124

Closed Answered by fannheyward
avario-cpu asked this question in Q&A
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
@avario-cpu
Comment options

@fannheyward
Comment options

Answer selected by avario-cpu
@avario-cpu
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