Coder Social home page Coder Social logo

Comments (3)

nicoespeon avatar nicoespeon commented on June 5, 2024 1

Hi @David-Else πŸ‘‹

Thank you for pushing this. This is what IΒ call "Improvements". A typical scenario that Abracadabra could recognize to apply an existing refactoring.

This one can be frequent when we use guard clauses indeed. I'll definitely love to implement this one πŸ‘

I'll keep you posted.

I know this is not a great bit of logic in my code, but this is just an example, I am having a go at refactoring an old app :)

You can do this! That's exactly in such situations I'd be glad to help you with the extension πŸ˜„

from abracadabra.

David-Else avatar David-Else commented on June 5, 2024

Cheers!

Sorry to go off topic, but I just saw this new feature in the new VSCode 1.41 release that is about to come out this week and thought it might help this extension?

https://code.visualstudio.com/docs/editor/refactoring#_keybindings-for-code-actions

from abracadabra.

nicoespeon avatar nicoespeon commented on June 5, 2024

That's very interesting.

From what I understand, that will allow the user to configure personal shortcuts for actions that are only available through Code Actions (= Quick Fixes). So you will be able to set a shortcut to trigger "Convert If/Else to Ternary" for example.

From the extension standpoint though, IΒ don't see how we could use that. Maybe Abracadabra could leverage it to make VS Code native "extract function" triggers with a shortcut. I'll have a look.

Again, thanks for sharing πŸ‘

from abracadabra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.