.ts file auto arrangememt, import react on top
.ts file auto arrangememt,
I would likr to have import react on top but dont understwnd the arrwngment settingd window. Nor thr docs it does not explain hos to sort the ikports based on name
请先登录再写评论。
You can enable Sort imports by modules in Settings | Editor | Code Style | TypeScript, Imports to get the imports sorted alphabetically by module name. But note that such sorting may break the logic
There is unfortunately no way to set up custom imports ordering/grouping; if you miss it, please vote for https://youtrack.jetbrains.com/issue/WEB-21182/ES6-provide-imports-layout-in-code-style and linked tickets