cursive-ide / cursive

Cursive: The IDE for beautiful Clojure code
580 stars 7 forks source link

Refactor: Extract Function #89

Open markmandel opened 10 years ago

markmandel commented 10 years ago

The ability to highlight an s-expression and extract a new function out from it in the same module, much like you can with Ruby/JS/Java etc.

fatlazycat commented 10 years ago

+1 from me

cprice404 commented 10 years ago

+1

KevinCorcoran commented 10 years ago

+1

lucascs commented 10 years ago

+1

albertlatacz commented 10 years ago

yeah, this would be really, really handy! Any chance of this being added soon?

cursive-ide commented 10 years ago

Fingers crossed, I'd like this myself!

tomassommar commented 10 years ago

+1

fatlazycat commented 9 years ago

+1

arnelandwehr commented 9 years ago

+1

DjebbZ commented 9 years ago

I have to +1 the feature too.

kurman-zz commented 9 years ago

+1. I tried using "extract variable" option and then move it out manually. However it is error prone when symbols are bound in outer scope.

jitlogic commented 9 years ago

+1

jitlogic commented 9 years ago

Also, 'inline function' feature would be useful so it can work in both ways. Just as Extract Method and Inline Method in IntelliJ Java refactoring tools.

hellonico commented 9 years ago

back to using intellij as main clojure dev env, and ... if any help to test ... drop me a line.

verma commented 8 years ago

+1, yes please.

marcolisi commented 8 years ago

+1, yes please.

dinuksw commented 8 years ago
ruttenberg commented 7 years ago

+1, please

smartoma commented 7 years ago

+1, please

kacyw commented 7 years ago

+1

aadrian commented 7 years ago

+1

DjebbZ commented 6 years ago

Sorry to bump this issue again. I would really love this kind of refactoring to be available in Cursive, as well as being able to extract anything to the top level scope of the namespace. I'm a huge "refactorer".

Idea :

yilazius commented 6 years ago

Is this feature under consideration at all? It is pretty much essential for heaving an IDE driven refactoring workflow IMHO. Work on this would be greatly appreciated! Cheers!

deepakazad commented 6 years ago

+1

myeh98 commented 6 years ago

+1

IvanVas commented 4 years ago

The feature would be very useful.

Stvad commented 4 years ago

This is an essential refactoring functionality, unpleasantly surprised that this has been ignored for years :(
Do people know any workarounds?

khangharoth commented 3 years ago

Any reason it's not been picked or prioritized?

ericauld commented 3 years ago

Eager for this feature

beatrizanami commented 3 years ago

This would be amazing :)

esuomi commented 2 years ago

I'm joining with the crowd above - extracting new functions from existing code is essential for any IDE, and it pairs really well with duplicate code elimination.

JoshuaFox commented 2 years ago

Yes please. And given Clojure's simple structure, this would seem to be even easier than for other languages.

ionutbilica commented 2 years ago

+1

dlebrero commented 1 year ago

+1

joseslneto commented 9 months ago

we forgot to celebrate the 10 year anniversary of this feature 😅