DEV Community

Cover image for Remove Space/Empty New Line on VSCode with Regex
Koji (he/him)
Koji (he/him)

Posted on

Remove Space/Empty New Line on VSCode with Regex

Photo by Joan Gamell on Unsplash

Remove space

  1. Cmd+F / Ctrl + F
  2. type \n in Find input
  3. leave Replace blank
  4. click replace one by one / replace all

Remove empty new line

  1. Cmd+F / Ctrl + F
  2. type ^\n in Find input
  3. leave Replace blank
  4. click replace one by one / replace all

Discussion (0)