Remove empty lines (VS Code): Unterschied zwischen den Versionen
Aus Wiki-WebPerfect
Admin (Diskussion | Beiträge) |
Admin (Diskussion | Beiträge) |
||
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
- 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)
- In the find box type ^(\s)*$\n
- Leave the replace box empty
- Make sure the 'Use Regular Expression' is selected
- Select 'Replace All' button