I am working in a large team with multiple branches and merges happening on a regular basis.
One thing that happens on regular basis is that web project files end up with duplicate entries for static content (.js, favicon.ico etc...).
I have two methods to removing the duplicates:
Both are tedious and I am not satisfied with them - do you have a better/faster/quicker method?
Open Edit > Replace or use Shortcut Ctrl + H in Windows, ⌘ + Alt + F on Mac. It removes duplicate lines from the file.
A very simple VS Code extension to identify duplicated lines. Select lines where you want to list the lines appearring twice or more, press Cmd+Alt+L and it will print bellow the duplicated lines.
The easiest way is to simply right-click on the duplicate and choose the "Exclude from Project" option. The duplicate will be disappear after refreshing the project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With