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

希望可以加入import自动排序 #58

Closed
JackLLLLL opened this issue Dec 25, 2021 · 2 comments
Closed

希望可以加入import自动排序 #58

JackLLLLL opened this issue Dec 25, 2021 · 2 comments

Comments

@JackLLLLL
Copy link

"editor.codeActionsOnSave": {
"source.sortImports": true
},

这样就可以不用关心import的顺序了~

@guoyunhe
Copy link
Collaborator

这个之前讨论过,但是考虑到这个排序可能不是很通用,就没有加入 f2elint。有些特殊的应用场景,import 顺序是会影响代码执行结果的,比如一些初始化脚本。

@JackLLLLL
Copy link
Author

了解了, 感谢回复~

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