Skip to content

Conversation

@N1ebieski
Copy link
Contributor

@N1ebieski N1ebieski commented Aug 6, 2025

This PR adds commands that refactor a selected or all class attributes to the directives.

The "selected" command is available by default through keyboard shortcut: SHIFT+ALT+C. This command is useful if you want to add a condition for some classes.

ezgif-780dfa5e554837

Both commands are available from the context menu:

obraz

and from the command palette:

obraz

I was inspired by a feature from Laravel Idea plugin for PHPStorm.

@joetannenbaum
Copy link
Collaborator

This is cool! Thank you! Refactored some of the language/methods to be more specific, otherwise looks good.

I also removed the default keybinding, people can create one if they need it but I try to avoid them in case there are collisions.

@joetannenbaum joetannenbaum merged commit d177d94 into laravel:main Sep 15, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants