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.
Add a comment  | 

1 Answer 1

Reset to default 0

As 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