🌐
Reddit
reddit.com › r/cursor › cursor: format on save (auto prettier) not working after update?
r/cursor on Reddit: Cursor: format on save (auto prettier) not working after update?
January 17, 2026 -

In Cursor, “format on save” (auto prettier) isn’t working for me.
It was working fine until yesterday, but after updating the Cursor editor, it seems to have stopped.

What’s weird is that in VS Code, it works perfectly on the same project/settings.

Is anyone else experiencing this, or is it just me?

🌐
Reddit
reddit.com › r/vscode › prettier not formatting css
r/vscode on Reddit: Prettier not formatting css
September 24, 2024 -

Hey everyone, for the life of me I can't figure out why prettier won't format css. I have gone over all of my setting, format on save, setting prettier as the default format, and checked the setting.json file. Still can't figure out what is going on. Any help would be appreciated!

🌐
Reddit
reddit.com › r/vscode › how to stop vscode/prettier to stop formatting these to the same line on save?
r/vscode on Reddit: How to stop VSCode/prettier to stop formatting these to the same line on save?
January 24, 2025 - what are you talking about. these are not CSS property declarations. they are utility classes being grouped together ... Increase printwidth to 100 or 120. ... Either you ignore entire file using .prettierignore or I believe you can also do something like eslint comments to describe disable it for the next line. ... using eslint as a as formatter is ...
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 3382
I have done all kinds of things but my prettier does not format on save. · Issue #3382 · prettier/prettier-vscode
April 26, 2024 - Type: Bug I installed prettier, on user I checked format on save and checked the config. Well it does not format on save I have followed all kinds of videos but it doesnot work. I think I did something wrong with the path. I even tried t...
Published   Apr 26, 2024
🌐
Reddit
reddit.com › r/javascript › [askjs] autoformatting issue with prettier and vscode
r/javascript on Reddit: [AskJS] Autoformatting issue with prettier and vscode
March 28, 2025 -

Hello, I am banging my head against a wall.

For long I had no autoformatting enabled in Vscode, when eslint (or prettier - I use the eslint prettier package) complained about some styling formatting I hovered over the error and clicked "Fix all problems" in Vscode.

But then I thought I finally need to setup the fix/format on save thingy… I enabled format on save in vscode settings And added this in my settings json in my project:

"editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.fixAll.eslint": true },

And it works!

But it seems I have some conflicting rules or stuff. Because I have something like this: some function => {} and when I hit save it formats to add a whitespace inside the curly braces: some function => { }

And here begins my problem. With the space I get an eslint error to remove the whitespace but when saving it adds it again. I am basically stuck lol

I tried to revert the settings in vscode but it keeps happening and I have no idea where to look for to fix this issue?

I will really appreciate any help or hints.

🌐
Code with Mosh
forum.codewithmosh.com › t › prettier-no-longer-formatting-on-save › 12245
Prettier no longer formatting on save - Code with Mosh Forum
May 2, 2022 - I have had prettier for months now and it has always formatted on save and now for reason it stopped. Any ideas?
Find elsewhere
🌐
Reddit
reddit.com › r/frontend › is using prettier to format code bad.
r/Frontend on Reddit: Is using Prettier to format code bad.
May 23, 2023 -

Recently joined a agency as an Contract React developer. I was assigned a task to edit some inline Scss code.

Being a Prettier user I formatted the code, made the necessary changes and submitted a pull request.

Next day the senior developer reviewed my code and asked me to stop using Prettier and assigned me a task to change back the Scss code manually to inline Scss.

When I asked why should I not use prettier to format code. He said it's bad and time consuming and other team members started telling me a story how one time prettier wasn't working and started throwing errors.

That's why they never use it.

I wanted to say that It was showing error because you were doing something wrong.

Just because you once had an bad experience doesn't mean it's bad.

Plus they use one big single Scss file for the whole project.

When I question it too and asked them to use separate files and how it can effect the performance.

One team member answered it doesn't matter, how they don't care about the performance and I should be open minded and learn from them. The boss has 18 years of experience.

What should I learn why not to follow good practices!

🌐
Reddit
reddit.com › r/neovim › unable to get formatting with prettier on save to work () nvchad
r/neovim on Reddit: Unable to get formatting with prettier on save to work () nvchad
June 23, 2024 -

I have configured neovim (nvchad) to format files on save with prettier. It does format them, but not the way I want. I'm not even sure if it uses prettier for the task because for example if I save a js file, it formats some things but doesn't add semicolons to the ends of lines. When using the :Prettier command, however, it does add the semicolons. Is this a problem with my configuration?

nvim/lua/plugins/init.lua

return {
  {
    "stevearc/conform.nvim",
    event = 'BufWritePre', -- uncomment for format on save
    opts = require "configs.conform",
  },

  -- These are some examples, uncomment them if you want to see them work!
  {
    "neovim/nvim-lspconfig",
    config = function()
      require "configs.lspconfig"
    end,
  },
  {
    "prettier/vim-prettier",
    lazy=false
  },
  {
    'Exafunction/codeium.vim',
    event = 'BufEnter',
    config = function ()
      vim.keymap.set('i', '<C-g>', function () return vim.fn['codeium#Accept']() end, { expr = true, silent = true })
      vim.keymap.set('i', '<c-;>', function () return vim.fn['codeium#CycleCompletions'](1) end, { expr = true, silent = true })
      vim.keymap.set('i', '<c-,>', function () return vim.fn['codeium#CycleCompletions'](-1) end, { expr = true, silent = true })
      vim.keymap.set('i', '<c-x>', function () return vim.fn['codeium#Clear']() end, { expr = true, silent = true })
    end
  },
  {
    "hrsh7th/nvim-cmp",
    config = function(_, opts)
      local cmp = require("cmp")
      local mymappings = {
        ["<Up>"] = cmp.mapping.select_prev_item(),
        ["<Down>"] = cmp.mapping.select_next_item(),
        ["<Tab>"] = cmp.mapping.confirm({
          behavior = cmp.ConfirmBehavior.Replace,
          select = true,
        }),
      }
      opts.mapping = vim.tbl_deep_extend("force", opts.mapping, mymappings)
      cmp.setup(opts)
    end,
  }

  -- {
  -- "nvim-treesitter/nvim-treesitter",
  -- opts = {
  -- ensure_installed = {
  -- "vim", "lua", "vimdoc",
  --      "html", "css"
  -- },
  -- },
  -- },
}

nvim/lua/configs/conform.lua

local options = {
  formatters_by_ft = {
    lua = { "stylua" },
    css = { "prettierd" },
    html = { "prettierd" },
    js = { "prettierd" },
    jsx = { "prettierd"},
    ts = { "prettierd" },
    tsx = { "prettierd" },
  },

  format_on_save = {
  -- These options will be passed to conform.format()
    timeout_ms = 500,
    lsp_fallback = true,
  },
}

return options

/nvim/lua/configs/lspconfig.lua

-- load defaults i.e lua_lsp
require("nvchad.configs.lspconfig").defaults()

local lspconfig = require "lspconfig"

-- EXAMPLE
local servers = { "html", "cssls", "ts_ls", "eslint" }
local nvlsp = require "nvchad.configs.lspconfig"

-- lsps with default config
for _, lsp in ipairs(servers) do
  lspconfig[lsp].setup {
    on_attach = nvlsp.on_attach,
    on_init = nvlsp.on_init,
    capabilities = nvlsp.capabilities,
  }
end

lspconfig.eslint.setup({
  on_attach = function(client, bufnr)
    vim.api.nvim_create_autocmd("BufWritePre", {
      buffer = bufnr,
      command = "Prettier",
    })
  end,
})

-- configuring single server, example: typescript
-- lspconfig.ts_ls.setup {
--   on_attach = nvlsp.on_attach,
--   on_init = nvlsp.on_init,
--   capabilities = nvlsp.capabilities,
-- }

I'm very new to the neovim scene. Any help will be much appreciated!

🌐
Reddit
reddit.com › r/vscode › prettier extension not working on html files
r/vscode on Reddit: Prettier extension not working on HTML files
January 29, 2022 -

I have Prettier setup as the default formatter already and it's working fine for JSX and JS files.

The weird thing is that it works on save, so when I save it formats HTML correctly, but if I try to do it manually I get: "Extension 'Prettier - Code formatter' is configured as formatter but it cannot format 'HTML'-files".

🌐
Scott Sauber
scottsauber.com › 2017 › 06 › 10 › prettier-format-on-save-never-worry-about-formatting-javascript-again
Prettier + Format On Save = Never worry about formatting JavaScript again – Scott Sauber
June 12, 2021 - I have checked the “Use prettier-eslint” in settings but I am still not getting the formatting. Any suggestions? Dana ... Hey Dana, sorry in the delay getting back to you. Did you get this resolved? ... I am going to uninstall and re-install. It still doesn’t auto-format when saved.
🌐
Reddit
reddit.com › r/learnprogramming › vs code prettier not formating
r/learnprogramming on Reddit: Vs code Prettier not formating
September 25, 2024 -

Hey everyone, I've been struggling for hours trying to get Prettier to work in VS Code. It was working perfectly fine for weeks, but then it suddenly stopped. I have it set to format on save, but it doesn't work. However, when I manually select "Format Document With... Prettier," it works. I've set the default formatter to Prettier and enabled format on save, but it still doesn't work. I'm completely lost at this point. I've read numerous posts about this issue, but I can't seem to figure it out. Any advice would be greatly appreciated!

🌐
Reddit
reddit.com › r/nextjs › prettier + nextjs - extremely slow format on save?
r/nextjs on Reddit: Prettier + NextJS - Extremely slow format on save?
September 9, 2024 -

Just recently as my app has started to grow in NextJS I've noticed when doing format on save, which I've done for years using Prettier to format, the syntax coloring breaks and it takes forever to save the file...

This is specifically with NextJS ONLY, I've gone back to recent projects made with React Vite + Express backend, 10x bigger than my current project, and when I save and prettier does the automatic format, its literally instant...

I've tried to do a complete fresh reinstall of vscode but this issue still keeps happening, only on my NextJS project, why is this happening and has anyone had this issue? How do I fix it?

Example:

Then I save and this happens:

It literally breaks the syntax coloring and its extremely annoying, even linting breaks so it screws me up... This only happens on NextJS... I don't want to stop using prettier as its been very useful

🌐
GitHub
github.com › microsoft › vscode › issues › 108447
Format on Save (prettier) stopped working with latest update · Issue #108447 · microsoft/vscode
October 10, 2020 - *questionIssue represents a question, should be posted to StackOverflow (VS Code)Issue represents a question, should be posted to StackOverflow (VS Code)formattingSource formatter issuesSource formatter issues ... Multiple time reinstalled Prettier, and checked the settings, it happened right after the update of VSCode.
Published   Oct 10, 2020
🌐
Cursor
forum.cursor.com › support › bug reports
Format on save with prettier takes eternity - Bug Reports - Cursor - Community Forum
August 30, 2024 - Just as the title suggests, when format on save is enabled I takes a long time to save files. Formatter is Prettier. As I am writing this post: Saving ‘geniusCreateCase.ts’: Running ‘Prettier - Code formatter’ Formatter is running for a good 10 minutes now.