0% found this document useful (0 votes)
22 views

Table 1-1 Code Editor Formatting Commands

This document discusses formatting commands in the Code Editor. It lists common formatting commands like indenting, commenting, and changing case. These commands allow manipulating code formatting and indentation. The commands are accessed through the Edit menu or Text Editor toolbar. Smart indentation can also automatically format code indentation but can be turned off to use a different standard.

Uploaded by

Mahesa Sudiro
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Table 1-1 Code Editor Formatting Commands

This document discusses formatting commands in the Code Editor. It lists common formatting commands like indenting, commenting, and changing case. These commands allow manipulating code formatting and indentation. The commands are accessed through the Edit menu or Text Editor toolbar. Smart indentation can also automatically format code indentation but can be turned off to use a different standard.

Uploaded by

Mahesa Sudiro
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 1

Accessing formatting commands

You can access formatting features to indent your code by choosing Edit Advanced. Table 1-1 lists the Code Editors formatting commands and what they do. Note that not all commands are available for all languages.

Table 1-1 Code Editor Formatting Commands


Menu Item Description Format Document Applies indentation style to the entire document Format Selection Applies indentation style to the selected text Tabify Selected Lines Converts indentations to tab characters Untabify Selected Lines Converts indentations to white space Make Uppercase Changes the code of the selected text to uppercase Make Lowercase Changes the code of the selected text to lowercase Delete Horizontal White Space Deletes all white space on the line View White Space Displays character marks in the editor Word Wrap Toggles line wrapping on and off Incremental Search Activates a search of your document, letter by letter, as you type Comment Selection Places comment characters in front of the selected text Uncomment Selection Removes comment characters from selected text Increase Line Indent Increases indentation Decrease Line Indent Decreases indentation Some indentation and comment commands are available on the Text Editor toolbar, as shown in Figure 1-3. Most of these commands are useless if youre using smart indentation. Smart indentation automatically manages indentation for you. You might choose to turn off smart indentation if your company uses a different indentation standard. Also, you might want to use your own indentation standard, such as using white spaces instead of tabs.
Book III Chapter 1

Programming with Visual Studio 2010

Using the Code Editor


Figure 1-3: Use the Text Editor toolbar to increase indentation or comment out a selection. Increase Indent Uncomment Out Decrease Indent Comment Out

131

You might also like