Hi,

I want to replace string in many files, but I the “replace all” feature trigger the formatting hook on save. I do not want this behavior. There is an option similar to “save without formatting”, but for “replace all” ?

Thanks

  • fenouil@jlai.luOP
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 year ago

    OK, 🤦‍♂️ I didn’t think to simply disable the “editor.formatOnSave” option and re-enabling it after. Took me 2 sec

    • mrsandwich
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      There’s also a “Save without formatting” in the Command Palette

      • unalivejoy@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Depending on your setting, opening the command palette will trigger a save with formatting.