admin管理员组文章数量:1123184
I've installed Cursor IDE and opened my React project which I developed using Webstorm IDE. When I did some changes in one of my .jsx files, Cursor automatically sorted my imports by it's own point of view or by alphabet, I'm not sure yet.
Why it is doing that and how I can switch it off?
I tried to find such option in Cursor settings, but did not find that.
I've installed Cursor IDE and opened my React project which I developed using Webstorm IDE. When I did some changes in one of my .jsx files, Cursor automatically sorted my imports by it's own point of view or by alphabet, I'm not sure yet.
Why it is doing that and how I can switch it off?
I tried to find such option in Cursor settings, but did not find that.
Share Improve this question asked 8 hours ago DmitryDmitry 1 New contributor Dmitry is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.1 Answer
Reset to default 0As per my experience, Cursor IDE sorts imports automatically because of built-in formatting rules, likely powered by tools like Prettier or ESLint. It might also be reading configurations like .prettierrc
or .eslintrc
from your project. To disable this, check your project files for import-sorting rules and adjust them. While Cursor doesn’t seem to have a direct setting to turn this off, relying on WebStorm for better control over import sorting might be a good alternative.
本文标签: javascriptWhy Cursor IDE automatically sorting my imports in React projectStack Overflow
版权声明:本文标题:javascript - Why Cursor IDE automatically sorting my imports in React project? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736554942a1944563.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论