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

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche
 
Zeile 2: Zeile 2:
 
#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
 
#Make sure the 'Use Regular Expression' is selected
 
#Make sure the 'Use Regular Expression' is selected

Aktuelle Version vom 12. Februar 2021, 14:46 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)

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