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

feat: 添加jsconfig.json文件 #270

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kchengz
Copy link

@Kchengz Kchengz commented May 10, 2024

添加jsconfig.json文件可以使js项目在 vscode 中可以正确提示路径
显示变量、函数、对象类型(类似ts)
函数引用跳转

更友好的提示

添加之前

微信图片_20240510102728

添加之后
微信图片_20240510102735

@myflytop
Copy link

并没有提示?

@Kchengz
Copy link
Author

Kchengz commented Jun 3, 2024

默认js项目在vscode基本没有什么提示,甚至连函数都没法定位到定义的地方
jsconfig.json 文件是用于配置Visual Studio Code编辑器中JavaScript项目的设置。它帮助VSCode更好地理解项目结构,从而提供更准确的代码智能提示、自动完成、错误检查以及模块解析等功能。

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

Successfully merging this pull request may close these issues.

2 participants