For Visual Studio 2022
Go to Tools >> Options >> Text Editor >> General and deselect the 'View White Space' checkbox