PRB: Visual C++ Wizards Ignore "Insert Spaces" in Tabs OptionLast reviewed: January 8, 1998Article ID: Q178995 |
The information in this article applies to:
SYMPTOMSAppWizard and ClassWizard always generate code indented with tabs, regardless of the "Insert Spaces" setting.
RESOLUTION
Visual C++ 5.0To remove all undesired tab characters from text displayed in Visual C++ Developer Studio, use the Untabify feature. To “untabify” a set of lines:
Visual C++ 4.xTo remove undesired tab characters from text displayed in Visual C++ versions earlier than 5.0, use the Replace feature. Follow these steps:
STATUSThis behavior is by design.
MORE INFORMATIONVisual C++ Developer Studio offers options to control how the editor processes tab keystrokes. If the "Insert Spaces" option is selected for the current file type, the editor embeds spaces instead of tab characters into source code whenever the user presses the TAB key. Some earlier text editors and utility programs automatically expand tabs to a fixed setting, which the user cannot configure (usually eight characters). The text formatting that they display will not properly represent code written with tab expansion set to a different value (four is the default in Developer Studio). For this and other reasons, some users may prefer to have their code formatted with spaces only. However, AppWizard and ClassWizard always generate code indented with tabs, regardless of the "Insert Spaces" setting. This behavior may annoy those users who prefer spaces.
Steps to Reproduce Behavior
Keywords : CodeGen vcbuglist400 vcbuglist410 vcbuglist420 vcbuglist500 VwbIss WizardIss Version : Winnt:4.0,4.0a,4.1,4.2,4.2b,5.0,5.0sp1,5.0sp2,5.0sp3 Platform : winnt Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |