All Projects → jimkyndemeyer → react-css-modules-intellij-plugin

jimkyndemeyer / react-css-modules-intellij-plugin

Licence: MIT license
React CSS Modules support in IntelliJ IDEA and WebStorm for components written in JavaScript and TypeScript.

Programming Languages

java
68154 projects - #9 most used programming language
javascript
184084 projects - #8 most used programming language
typescript
32286 projects
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to react-css-modules-intellij-plugin

Svelte Intellij
Svelte components in WebStorm and friends
Stars: ✭ 345 (+741.46%)
Mutual labels:  intellij, webstorm
Js Graphql Intellij Plugin
GraphQL language support for WebStorm, IntelliJ IDEA and other IDEs based on the IntelliJ Platform.
Stars: ✭ 686 (+1573.17%)
Mutual labels:  intellij, webstorm
Intellij Plugin Save Actions
Supports configurable, Eclipse like, save actions, including "organize imports", "reformat code" and "rearrange code".
Stars: ✭ 440 (+973.17%)
Mutual labels:  intellij, webstorm
Night Owl Jetbrains
Night owl theme / colour scheme for IntelliJ and Webstorm (or other Jetbrains IDEs). Includes dark and light mode 🌓
Stars: ✭ 276 (+573.17%)
Mutual labels:  intellij, webstorm
Dotfiles
🤔Config files, Webstorm and Vim dark theme🌚
Stars: ✭ 101 (+146.34%)
Mutual labels:  intellij, webstorm
Intellij Elm
Elm language support for IntelliJ, WebStorm, PhpStorm and PyCharm (JetBrains)
Stars: ✭ 305 (+643.9%)
Mutual labels:  intellij, webstorm
Intellij Jvm Options Explained
Common JVM options used with Intellij and what they do
Stars: ✭ 636 (+1451.22%)
Mutual labels:  intellij, webstorm
intellij-autohotkey
AutoHotkey plugin for the Jetbrain's IntelliJ platform
Stars: ✭ 30 (-26.83%)
Mutual labels:  intellij, webstorm
Idea One Dark Theme
One Dark theme for IntelliJ IDEA, PhpStorm, PyCharm, RubyMine, WebStorm
Stars: ✭ 971 (+2268.29%)
Mutual labels:  intellij, webstorm
Jetbrains Helper
Jetbrains helper
Stars: ✭ 33 (-19.51%)
Mutual labels:  intellij, webstorm
interstellar
Dark editor theme for JetBrains IDEs
Stars: ✭ 26 (-36.59%)
Mutual labels:  intellij, webstorm
Intellij Platform Solarized
Solarized UI and editor themes for IntelliJ IDEA, CLion, Rider, PyCharm, RubyMine, PhpStorm, WebStorm, Android Studio, DataGrip and GoLand
Stars: ✭ 148 (+260.98%)
Mutual labels:  intellij, webstorm
jetbrains-theme
🎨 A modern, productivity-increaser theme for all JetBrains IDEs
Stars: ✭ 108 (+163.41%)
Mutual labels:  intellij, webstorm
Intellij Idea Tutorial
IntelliJ IDEA 简体中文专题教程
Stars: ✭ 19,071 (+46414.63%)
Mutual labels:  intellij, webstorm
JetBrainsRunner
A Krunner Plugin which allows you to open your recent projects
Stars: ✭ 31 (-24.39%)
Mutual labels:  intellij, webstorm
Ts Monorepo
Template for setting up a TypeScript monorepo
Stars: ✭ 459 (+1019.51%)
Mutual labels:  intellij, webstorm
ReactPropTypes-Plugin
A Jetbrains Plugin for react PropTypes
Stars: ✭ 62 (+51.22%)
Mutual labels:  intellij, webstorm
jetbrains-utility
Remove/Backup – settings & cli for macOS (OS X) – DataGrip, AppCode, CLion, Gogland, IntelliJ, PhpStorm, PyCharm, Rider, RubyMine, WebStorm
Stars: ✭ 62 (+51.22%)
Mutual labels:  intellij, webstorm
Runconfigurationasaction
Provides a way to use IntelliJ run configurations as buttons
Stars: ✭ 17 (-58.54%)
Mutual labels:  intellij, webstorm
Tabnine Intellij
Jetbrains IDEs client for TabNine. Compatible with all IntelliJ-based IDEs. https://plugins.jetbrains.com/plugin/12798-tabnine
Stars: ✭ 140 (+241.46%)
Mutual labels:  intellij, webstorm

React CSS Modules IntelliJ Plugin

React CSS Modules support for components written in JavaScript and TypeScript.

It provides the following features in IntelliJ IDEA, WebStorm, RubyMine, PhpStorm, and PyCharm:

  • Completion and error highlighting for require'd CSS classes used in React styleName attributes
  • Completion and error highlighting for require'd CSS classes used in styles string literals, e.g. styles['my-class']
  • Intention to create missing CSS class from usage in React
  • Integrates React references to CSS class names with 'Find Usages', 'Rename', and 'Go to Declaration'

Features demo

Completion, error highlighting, find usages

Known limitations

@value shows "Unknown CSS at-rule" error in the editor. There doesn't appear to be an API hook for adding @value as a known rule, or for filtering the error. To remove the error marker (but also other at-rule error markers) disable the inspection.

Accessing style names via fields (e.g. styles.myClassName) is not supported. There doesn't appear to be any PSI API hooks for achieving this. Instead, use styles['my-class-name'] which also doesn't limit class names to camel-case.

The plugin assumes a one-to-one relationship between a React component and the require'd .css/.scss/.less file.

PR's are welcome.

FAQ

Does this also work with .scss and .less files?

Yes. It should work for all CSS dialects supported by the IntelliJ platform.

Which IDEs are compatible with the plugin?

The plugin is compatible with version 163+ (2016.3 or newer) of IntelliJ IDEA, WebStorm, RubyMine, PhpStorm, and PyCharm. 2016.3 is the first official version that supports :global, :local, and composes used by CSS Modules.

PyCharm CE is not supported since the plugin depends on two other plugins: NodeJS and JavaScript.

Where can I get the plugin?

The plugin is available from the JetBrains Plugin Repository at https://plugins.jetbrains.com/plugin/9275

To install it, open "Settings", "Plugins", "Browse repositories..." and search for "CSS Modules".

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].