@WebStormIDE Is there a way to get the parent folder name when creating a new file (for file template variables)?
have seen many projects that use the component/conponent.js project structure.
-
-
can you please submit a feature request for a directory variable for file templates,there's no such atm https://youtrack.jetbrains.com/issues/IDEA
-
will do! The '/ComponentName/index.js(x)' style is really popular (for good reason). And even works with triple shift in WS! :)
End of conversation
New conversation -
-
-
and for that would suggest to use this template http://blog.500tech.com/quick-add-react-component-to-webstorm/ …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
just because many people do it the wrong way doesn't make it right. That method results in redundant import statements.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
import SomeComponent from './SomeComponent/SomeComponent.js' vs from './SomeComponent'
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.