javascript - How do define source root in VS Code - Stack Overflow

In Webstorm I can easily mark folders as source root or some other stuff.But source root is the most i

In Webstorm I can easily mark folders as source root or some other stuff. But source root is the most important when ctrl clicking ponents in your code.

Is there a simular way of doing this in VS Code? It doesnt understand my js imports.

In Webstorm I can easily mark folders as source root or some other stuff. But source root is the most important when ctrl clicking ponents in your code.

Is there a simular way of doing this in VS Code? It doesnt understand my js imports.

Share Improve this question asked Mar 15, 2017 at 10:21 RaneRane 3751 gold badge6 silver badges18 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 4

Create a file jsconfig.json at the root of you project with the following content (replace src with relative source root):

{
  "pilerOptions": {
    "baseUrl": "./src"
  }
}

For further details: https://github./Microsoft/vscode/issues/14907#issuement-306853768

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745588756a4634705.html

相关推荐

  • javascript - How do define source root in VS Code - Stack Overflow

    In Webstorm I can easily mark folders as source root or some other stuff.But source root is the most i

    9小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信