Press Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux)
Type "ImportSense: Fix Import Order"
Press Enter
Quick Fix
Place your cursor anywhere in the import block
Click the lightbulb icon or press Cmd+. / Ctrl+.
Select "Sort imports with ImportSense"
Example
Before:
import { useState } from 'react';
import axios from 'axios';
import { Button } from '@/components/Button';
import './styles.css';
import { formatDate } from '@/utils/date';
import type { User } from '@/types/user';
import React from 'react';
After:
import React from 'react';
import { useState } from 'react';
import axios from 'axios';
import { Button } from '@/components/Button';
import { formatDate } from '@/utils/date';
import type { User } from '@/types/user';
import './styles.css';
Supported Files
.js
.ts
.jsx
.tsx
Project Detection
ImportSense automatically detects:
Framework via package.json (React, Next.js, Node.js)