CudaText-addons / cuda_lsp

LSP Client plugin for CudaText
2 stars 3 forks source link

'Extract method' feature #188

Open Alexey-T opened 1 year ago

Alexey-T commented 1 year ago

I got question on forum

Is there a plugin to extract method for the selected code like VScode?

and details about it

like to change code a = 1 to def method(): a =1 return a it's a vscode feature.

is it possible to support it for Python? @veksha

veksha commented 1 year ago

i see that using this combination user can have various refactoring capabilities (like "extract method"): https://github.com/python-lsp/python-lsp-server + https://github.com/python-rope/pylsp-rope but sadly, it requires LSP Code Actions feature (not implemented in CudaText's LSP Client)

Alexey-T commented 1 year ago

Thanks..