Skip to content

Feature request: toggle show/hide classnames #313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
julienma opened this issue May 3, 2021 · 3 comments
Closed

Feature request: toggle show/hide classnames #313

julienma opened this issue May 3, 2021 · 3 comments

Comments

@julienma
Copy link

julienma commented May 3, 2021

Hey,
Tailwind is awesome. A minor downside though is that my HTML is much denser, less easy to scan, because of all the new class names.

I'd like a way to collapse all Tailwind classes, while keeping visible custom classes, such that it becomes easier to scan when I need to focus on my HTML. A keyboard shortcut to toggle visibility would be great (I think), e.g.

turn this:

<div class="flex items-start self-center mt-3">
  <div class="flex items-center h-5">
    <input name="yo" type="checkbox" class="w-4 h-4 text-red-600 border-gray-300 rounded focus:ring-indigo-500 my-custom-class" value="1">
  </div>
</div>

to this:

<div class="•••">
  <div class="•••">
    <input name="yo" type="checkbox" class="••• my-custom-class" value="1">
  </div>
</div>

What do you think?

@bradlc
Copy link
Contributor

bradlc commented May 10, 2021

Hey @julienma thanks for the suggestion! I have played with this idea in the past and I don't think it's currently possible to implement it well in VS Code. Going to close this as I don't think that's going to change any time soon.

@bradlc bradlc closed this as completed May 10, 2021
@julienma
Copy link
Author

Ha, ok, thanks Brad.

@mtbaqer
Copy link

mtbaqer commented Nov 10, 2022

Hey @bradlc, was wondering if we could reopen this issue given the new feature PR?
To work as a place to discuss ideas and concerns regarding implementing the feature, now that we potentially have a good way of doing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants