How would I remove all lines starting with the following string in VScode? I also want to remove the empty line when deleting the text. 
`this.viewTopTitle =`
To replace all lines that start with "this.view.TopTitle =" you will want to do a find and replace. 
- Press Ctrl + H to open your replace panel
- In the box for selecting what to replace, type in this:
^this/.viewTopTitle=.*(\r\n|\r|\n)
- Leave the field specifying what to replace it with blank.
- Check the "Regular expression" option
- Execute the operation

This should delete all lines starting with the string you specified, and also the line break. 

If you have any more problems do not be afraid to ask, because like making a child, if you make a mistake in your code you have to support it for the rest of your life.