Answers for "vs code remove duplicate line"

2

remove duplicates vscode

Order the rows
Ctrl+H
Alt+R to toogle Regular Expression Symbol ( .* )
'Search': ^(.*)(\n\1)+$
'Replace with': $1

If the order of lines is important so you can't sort:
'Search': ((^[^\S$]*?(?=\S)(?:.*)+$)[\S\s]*?)^\2$(?:\n)?
In this case, caution:
	Blocks for files with too many lines (1000+) may cause VS Code to crash
	and may introduce blank lines in some cases.
Posted by: Guest on November-13-2020
1

duplicate line un vs code

---------------- Windows ---------------
Duplicate Line Up   : Shift + Alt + Up
Duplicate Line Down : Shift + Alt + Down

----------------  Linux ------------------
Duplicate Line Up   : Ctrl + Shift + Alt + 8.
Duplicate Line Down : Ctrl + Shift + Alt + 2.
Posted by: Guest on April-21-2021

Code answers related to "vs code remove duplicate line"

Browse Popular Code Answers by Language