admin管理员组文章数量:1026989
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 badges1 Answer
Reset to default 4Create 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
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 badges1 Answer
Reset to default 4Create 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
本文标签: javascriptHow do define source root in VS CodeStack Overflow
版权声明:本文标题:javascript - How do define source root in VS Code - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745588754a2157760.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论