Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
2025-02-02.18.29.36.mov
Features
Create CSS Module file for current file
If there is no CSS Module file corresponding to
xxx.tsx
, create one.2025-02-02.19.07.06.mov
Complete `className={...}` instead of `className="..."`
In projects where CSS Modules are used, the element is styled with
className={styles.xxx}
. However, when you typeclassName
,className="..."
is completed. This is annoying to the user.So, instead of
className="..."
instead ofclassName={...}
instead ofclassName="..."
.2025-02-02.19.07.27.mov
Prioritize the `styles' import for the current component file
When you request
styles
completion, the CSS Module filestyles
will be suggested. If there are many CSS Module files in the project, more items will be suggested. This can be confusing to the user.So I have made it so that the
styles
of the CSS Module file corresponding to the current file is shown first.Add missing CSS rule
If you are trying to use a class name that is not defined, you can add it with Quick Fixes.
2025-02-02.19.24.36.mov