4 ms·
In webstorm/intellij say you have a react component, one export per module as you say. The import statements are a tie imo to write by hand: import MyThing
by sceutre 9y ago
In webstorm/intellij say you have a react component, one export per module as you say. The import statements are a tie imo to write by hand:
import MyThing from "../../components/editors/MyThing";
import {MyThing} from "../../components/editors/MyThing";
But if it's named, you don't need to stop what you're doing, scroll to the top of the file, type out the import statement by hand, and look over at your code tree and figure out the path to the module you want.
You just type MyT Ctrl-Space and let intellij do all that for you, not even having to move out of the function you're writing.
- Guillaume86 9y agoSo it's exactly like vs code?
- _hardwaregeek 9y agoYou can easily add the import statement, named or not, with option-space
- chrisco255 9y agoYou shouldn't code around your tools. Your tools are there to serve you, not the other way around. Also, devs on my team use vim, Sublime, Atom, VS Code, Webstorm/IntelliJ, and many more. They all work radically different for things like this.