-
Notifications
You must be signed in to change notification settings - Fork 0
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
vs code jsconfig 配置 #100
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vs code jsconfig 配置
jsconfig.json
的作用:对JS 项目
目录提供个性化支持:比如路径短写、引入文件自动完成等,能提升开发体验。配置详情
exclude
属性,glob 模式,告诉语言服务哪些文件不是源码文件,能提高 vscode 扫描速度。include
,属性,指定哪些路径或者文件是项目文件。webpack 配置路径别名,在引入文件时,vscode 无法感知路径的,也
无法跳转
文件,jsconfig 的别名路径解决这一问题。jsconfig.json 是 tsconfig.json 的后代,后者是 TypeScript 的配置文件。
jsconfig.json 相当于 tsconfig.json 的“allowJs”属性设置为 true。
常用的配置选项:
The text was updated successfully, but these errors were encountered: