Skip to content
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

how to use autocompletion in IntelliJ/WebStorm? #105

Closed
tangkunyin opened this issue Dec 7, 2016 · 2 comments
Closed

how to use autocompletion in IntelliJ/WebStorm? #105

tangkunyin opened this issue Dec 7, 2016 · 2 comments

Comments

@tangkunyin
Copy link

I use WebStorm of version 2016.3.1 , .babelrc content is

{
    "presets": [
        "react-native"
    ],
    "plugins": [
        "transform-decorators-legacy",
        ["module-resolver", {
        "root": ["./app"],
        "alias": {
          "components": "./app/components",
          "utils":"./app/utils",
          "common":"./app/common",
          "actions":"./app/actions",
          "services":"./app/services"
        }
      }]
    ]
}

when I import a file , path autocompletion does not work.Anyone can help?

@tleunen
Copy link
Owner

tleunen commented Dec 7, 2016

See https://github.com/tleunen/babel-plugin-module-resolver#editors-autocompletion

There's a configuration to make inside webstorm/intellij to add your custom root directory. Unfortunately, this solution only work with the root configuration.

Btw, your alias config seems redundant with your root?

@tleunen tleunen closed this as completed Dec 9, 2016
@tangkunyin
Copy link
Author

@tleunen thanks a lot

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

No branches or pull requests

2 participants