Source Menu actions

Selecting Source Menu

Name Function Keyboard Shortcut
Add or remove single-line, C++-style, comment markers on each line in the selection, or the line containing the cursor, if there is no selection Ctrl+/
Add a block comment around the selection Ctrl+Shift+/
If the selection contains one or more block comments, remove them Ctrl+Shift+\
Increase indentation on each line in the selection, or the line containing the cursor, if there is no selection  
Decrease indentation on each line in the selection, or the line containing the cursor, if there is no selection Shift+Tab
Apply simple indentation rules to the current selection, or the line containing the cursor, if there is no selection Ctrl+I
Apply the full command linkC/C++ > Code Style > Formatter preferences to the entire contents of the active editor, or to the selection if there is one Ctrl+Shift+F
Add an include statement and, optionally, a "using" declaration for the currently selected name Ctrl+Shift+N
Sort the selected lines Ctrl+Alt+S
Open the Implement Method dialog  
Open the Generate Getters and Setters dialog that allows you to create Getters and Setters for fields in the current type. Available on fields and types or on a text selection inside a type  
Surround the selected statements with a code template (as defined in command linkC/C++ > Editor > Templates ) Alt+Shift+Z

Intel Copyright Statement