I want to config Organize Imports's order.
Right now, it moves node_modules
related import statement at the very top, and local ts
file at very bottom:
Normal:
import myFunction from './myFunction';
import fs from 'fs';
console.log(fs)
console.log(myFunction)
After running Organize Imports command:
import fs from 'fs';
import myFunction from './myFunction';
console.log(fs)
console.log(myFunction)
What I want to do is reverse the order, I want node_modules
to be very bottom, local imports to be very top.
How can I achieve this behaviour?
groups
such that you haverelative
andrelativeDirect
higher in the array. – Keijo