Tuesday, February 12, 2019

Visual studio Code

Remove duplicated lines in Visual Studio Code super!

  1. Control+F
  2. Toggle "Replace mode"
  3. Toggle "Use Regular Expression" (the icon with the .* symbol)
  4. In the search field, type ^(.*)(\n\1)+$
  5. In the "replace with" field, type $1
  6. Click the Replace All button ("Replace All").

https://stackoverflow.com/questions/37992493/how-to-remove-duplicate-lines-in-visual-studio-code/45829605