🌐
GitHub
github.com › simonhaenisch › prettier-plugin-organize-imports
GitHub - simonhaenisch/prettier-plugin-organize-imports: Make Prettier organize your imports using the TypeScript language service API.
Make Prettier organize your imports using the TypeScript language service API. - simonhaenisch/prettier-plugin-organize-imports
Starred by 1.2K users
Forked by 44 users
Languages   JavaScript 100.0% | JavaScript 100.0%
🌐
GitHub
github.com › simonhaenisch › prettier-plugin-organize-imports › releases
Releases · simonhaenisch/prettier-plugin-organize-imports
Make Prettier organize your imports using the TypeScript language service API. - Releases · simonhaenisch/prettier-plugin-organize-imports
Author   simonhaenisch
Discussions

Not working with `prettier-plugin-organize-imports`
Reload to refresh your session. ... There was an error while loading. Please reload this page. ... It appears that either prettier-plugin-tailwindcss or prettier-plugin-organize-imports affect the file, based on which one appears last in the config plugin list, but not both. More on github.com
🌐 github.com
3
January 26, 2022
How to automatically sort imports in VS Code?
I use prettier-plugin-organize-imports https://www.npmjs.com/package/prettier-plugin-organize-imports More on reddit.com
🌐 r/vuejs
6
11
March 10, 2025
Use the `source.sortImports` code action instead to avoid deleting "unused" imports
The source.sortImports code action is similar to the what organize imports does, except it doesn't doesn't remove "unused" imports. Automatic removal of "unused" imports by a Prettier plugin is una... More on github.com
🌐 github.com
8
September 7, 2021
Sorting Import statements in VS Code with Prettier
Is there a written version? More on reddit.com
🌐 r/vscode
8
19
July 25, 2022
🌐
GitHub
github.com › oki07 › prettier-plugin-astro-organize-imports
GitHub - oki07/prettier-plugin-astro-organize-imports: A Prettier plugin for formatting imports in Astro files · GitHub
A Prettier plugin for formatting imports in Astro files - oki07/prettier-plugin-astro-organize-imports
Starred by 46 users
Forked by 2 users
Languages   TypeScript 89.9% | JavaScript 10.1%
🌐
GitHub
github.com › IanVS › prettier-plugin-sort-imports
GitHub - IanVS/prettier-plugin-sort-imports: An opinionated but flexible prettier plugin to sort import statements · GitHub
An opinionated but flexible prettier plugin to sort import statements - IanVS/prettier-plugin-sort-imports
Starred by 1.4K users
Forked by 38 users
Languages   TypeScript 90.1% | JavaScript 7.2% | Vue 2.6% | Astro 0.1%
🌐
GitHub
github.com › trivago › prettier-plugin-sort-imports
GitHub - trivago/prettier-plugin-sort-imports: A prettier plugin to sort imports in typescript and javascript files by the provided RegEx order. · GitHub
A prettier plugin to sort import declarations by provided Regular Expression order.
Starred by 3.9K users
Forked by 158 users
Languages   TypeScript 81.4% | JavaScript 11.0% | Svelte 4.3% | Vue 3.3%
🌐
GitHub
github.com › simonhaenisch › prettier-plugin-organize-imports › blob › master › readme.md
prettier-plugin-organize-imports/readme.md at master · simonhaenisch/prettier-plugin-organize-imports
Make Prettier organize your imports using the TypeScript language service API. - simonhaenisch/prettier-plugin-organize-imports
Author   simonhaenisch
🌐
DEV Community
dev.to › diballesteros › how-to-quickly-sort-imports-with-prettier-3po7
How to quickly sort imports with Prettier - DEV Community
March 30, 2022 - npm install prettier @trivago/prettier-plugin-sort-imports --save-dev · Now we can go ahead and start configuring our rules. This plugin receives an array of strings.
🌐
GitHub
github.com › tailwindlabs › prettier-plugin-tailwindcss › issues › 26
Not working with `prettier-plugin-organize-imports` · Issue #26 · tailwindlabs/prettier-plugin-tailwindcss
January 26, 2022 - // merged-prettier-plugin.js const tailwind = require('prettier-plugin-tailwindcss') const organizeImports = require('prettier-plugin-organize-imports') const combinedFormatter = { ...tailwind, parsers: { ...tailwind.parsers, ...Object.keys(organizeImports.parsers).reduce((acc, key) => { acc[key] = { ...tailwind.parsers[key], preprocess(code, options) { return organizeImports.parsers[key].preprocess(code, options) }, } return acc }, {}), }, } module.exports = combinedFormatter
Author   jacobwgillespie
Find elsewhere
🌐
GitHub
github.com › simonhaenisch › prettier-plugin-organize-imports › blob › master › prettier.d.ts
prettier-plugin-organize-imports/prettier.d.ts at master · simonhaenisch/prettier-plugin-organize-imports
import ts = require('typescript'); · declare module 'prettier' { interface Options { organizeImportsSkipDestructiveCodeActions?: boolean; organizeImportsTypeOrder?: ts.OrganizeImportsTypeOrder; } interface ParserOptions { organizeImportsSkipDestructiveCodeActions?: boolean; organizeImportsTypeOrder?: ts.OrganizeImportsTypeOrder; } } ·
Author   simonhaenisch
🌐
Medium
medium.com › @diballesteros › how-to-quickly-sort-imports-with-prettier-14f82b16a956
How to quickly sort imports with Prettier | by Diego Ballesteros (Relatable Code) | Medium
March 30, 2022 - This will cover mostly everything! So let’s create a .prettierrc (a prettier configuration file) at the route of our project. ... { "importOrder": [ "^components/(.*)$", "^[./]" ], "importOrderSeparation": true, "importOrderSortSpecifiers": true }
🌐
GitHub
github.com › simonhaenisch › prettier-plugin-organize-imports › blob › master › .editorconfig
prettier-plugin-organize-imports/.editorconfig at master · simonhaenisch/prettier-plugin-organize-imports
July 31, 2023 - Make Prettier organize your imports using the TypeScript language service API. - simonhaenisch/prettier-plugin-organize-imports
Author   simonhaenisch
🌐
npm
npmjs.com › package › prettier-plugin-imports
prettier-plugin-imports - npm
July 24, 2023 - organize · import · typescript · javascript · npm i prettier-plugin-imports · github.com/oviirup/prettier-plugin-imports · github.com/oviirup/prettier-plugin-imports#readme · 659 · 4.3.3 · MIT · 442 kB · 212 · 10 months ago · graygalaxy ...
      » npm install prettier-plugin-imports
    
Published   Apr 24, 2025
Version   4.3.3
Author   Avirup Ghosh
🌐
Medium
medium.com › @python-javascript-php-html-css › optimizing-typescript-imports-configuring-prettier-and-eslint-for-multi-line-format-ec282b65d64e
Optimizing TypeScript Imports: Configuring Prettier and ESLint for Multi-line Format
November 29, 2025 - When the line exceeds the set width (in this case, 80 or 120 characters), Prettier will automatically format the code to make it more readable. By using the prettier-plugin-organize-imports plugin, we ensure that import statements are split ...
🌐
npm
npmjs.com › package › prettier-plugin-organize-imports
prettier-plugin-organize-imports - npm
September 18, 2025 - Make sure that your import statements ... (i. e. sorts, combines and removes unused ones) using the organizeImports feature of the TypeScript language service API....
      » npm install prettier-plugin-organize-imports
    
Published   Sep 18, 2025
Version   4.3.0
Author   Simon Haenisch
🌐
GitHub
github.com › simonhaenisch › prettier-plugin-organize-imports › actions
Workflow runs · simonhaenisch/prettier-plugin-organize-imports
Make Prettier organize your imports using the TypeScript language service API. - Workflow runs · simonhaenisch/prettier-plugin-organize-imports
Author   simonhaenisch
🌐
GitHub
github.com › devim-front › prettier-plugin-group-imports
GitHub - devim-front/prettier-plugin-group-imports
February 22, 2017 - Devim Front: Prettier Plugin Group Imports Installation Configuration Resolver Parser options Groups License · Provides a concise way to organize imports in your code.
Author   devim-front
🌐
GitHub
github.com › ArnaudBarre › prettier-plugin-sort-imports
GitHub - ArnaudBarre/prettier-plugin-sort-imports: A small low-overhead TS-only Prettier plugin to sort imports · GitHub
March 18, 2024 - A small low-overhead TS-only Prettier plugin to sort imports - ArnaudBarre/prettier-plugin-sort-imports
Author   ArnaudBarre
🌐
Reddit
reddit.com › r/vuejs › how to automatically sort imports in vs code?
r/vuejs on Reddit: How to automatically sort imports in VS Code?
March 10, 2025 -

Looking at this GitHub comment, it seems like I should be able to add "editor.codeActionsOnSave": { "source.organizeImports": true } to .vscode/settings.json and have it "just work", but in my testing that doesn't work. How do you handle automatic import sorting for .vue files in Visual Studio Code?

🌐
Norday Tech
norday.tech › posts › 2023 › automatically-sort-import-statements-with-prettier
Automatically sort import statements with Prettier | Norday Tech
July 31, 2023 - Use GitHub workflows for continuous integration and every deployment. A blog post about that. But one thing has bugged us for the past 2 years: the sorting of imports. While Prettier formats all of the if-statements, functions, indentation, etc, the imports stay just where they are. Luckily, Ayush Sharma and Behrang Yarahmadi have made a plugin for Prettier that allows it to sort the import statements as well.
🌐
GitHub
github.com › simonhaenisch › prettier-plugin-organize-imports › issues › 37
Use the `source.sortImports` code action instead to avoid deleting "unused" imports · Issue #37 · simonhaenisch/prettier-plugin-organize-imports
September 7, 2021 - The source.sortImports code action is similar to the what organize imports does, except it doesn't doesn't remove "unused" imports. Automatic removal of "unused" imports by a Prettier plugin is unacceptable, for a few reasons: Automatica...
Author   jaydenseric