Remove empty lines (VS Code): Unterschied zwischen den Versionen

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „#Open your code in Visual Studio Code #From Edit Menu, select Replace or use a short cut key (command + Option + F on Mac or '''Ctrl + H''' on Windows) Datei…“)
 
Zeile 1: Zeile 1:
 
#Open your code in Visual Studio Code
 
#Open your code in Visual Studio Code
 
#From Edit Menu, select Replace or use a short cut key (command + Option + F on Mac or '''Ctrl + H''' on Windows)
 
#From Edit Menu, select Replace or use a short cut key (command + Option + F on Mac or '''Ctrl + H''' on Windows)
[[Datei:Vscode remove empty lines.png]]
+
#[[Datei:Vscode remove empty lines.png]]
 
#In the find box type ^(\s)*$\n
 
#In the find box type ^(\s)*$\n
 
#Leave the replace box empty
 
#Leave the replace box empty

Version vom 12. Februar 2021, 14:45 Uhr

  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)
  3. Vscode remove empty lines.png
  4. In the find box type ^(\s)*$\n
  5. Leave the replace box empty
  6. Make sure the 'Use Regular Expression' is selected
  7. Select 'Replace All' button