skip to Main Content

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.

2

Answers


  1. 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.

    Login or Signup to reply.
  2. Disable

    Sort-imports: On-save

    helped me

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search