Each code editor in Visual Studio has a set of configurable rules that control the formatting of the code. Walt shows the key setting available for the C++ editor.
And C++ has a set of configurable rules,…so you can change the defaults to ones…that appeal to your sense of layout.…To make these changes, you go to the Tools menu…and choose Options.…Then you choose this node here, the C++ node.…And of course, the things you're looking for…are here in the Formatting section.…You can control when the formatting happens.…I showed you how to do it using the menu,…but C# and C++, and some of the other languages,…will format single lines of code as you type them.…
So you can choose to automatically indent…when I type the tab character.…
- Exploring the code editor window and default settings
- Commenting code
- Using hover tips and IntelliSense
- Tracking changes
- Refactoring code
- Formatting and arranging code
- Navigating and inspecting code
- Using the Task List
- Working with snippets and smart tags
Skill Level Beginner
Q: This course was updated on 08/21/2017. What changed?
A: New videos were added that cover visualizing code and markup with structure guidelines in Visual Studio 2017; refactor enhancements in Visual Studio 2017; format rules for C# in Visual Studio 2017; format rules for Visual Basic in Visual Studio 2017; smart peek options; and CodeMap in Visual Studio 2017.
ASP.NET MVC 5 Essential Trainingwith Michael Sullivan3h 40m Intermediate
1. Work with Code Editors
2. Format Your Code
3. Navigate and Inspect Code
4. Tools for Enhancing Your Coding Sessions
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.