Settings -> Preferences -> Language -> Tab Settings -> check "Replace by space" option.
Ref:- https://stackoverflow.com/questions/8197812/how-do-i-configure-notepad-to-use-spaces-instead-of-tabs