Menghapus Baris Kosong (Blank Line) di VS Code

Cara Menghapus baris kosong di VSCODE

Cara 1 :

You can use regular expressions.

  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. In the find box type ^(\s)*$\n
  4. Leave the replace box empty
  5. Make sure the 'Use Regular Expression' is selected
  6. Select the 'Replace All' button
Sumber : https://stackoverflow.com/questions/50042278/visual-studio-code-remove-blank-lines-from-code

Cara 2 :
Gunakan VS Code Extension : Remove Empty Lines


Posting Komentar

Lebih baru Lebih lama