Under Tools, choose Options. Under Options, choose Text Editor. Under Text Editor, choose All Languages. And under All Languages, choose Tabs. On the right ... Enter the number of spaces, 3 or 4. And choose "Insert spaces"