Remove empty lines (VS Code)

Aus Wiki-WebPerfect
Version vom 12. Februar 2021, 14:46 Uhr von Admin (Diskussion | Beiträge)

(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche
  1. Open your code in Visual Studio Code
  2. From Edit Menu, select Replace or use a short cut key (command + Option + F on Mac or Ctrl + H on Windows)

Vscode remove empty lines.png

  1. In the find box type ^(\s)*$\n
  2. Leave the replace box empty
  3. Make sure the 'Use Regular Expression' is selected
  4. Select 'Replace All' button