Answers for "vscode remove duplicate lines"

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

Code answers related to "vscode remove duplicate lines"

Browse Popular Code Answers by Language