Source Menu actions
Name | Function | Keyboard Shortcut |
---|---|---|
Toggle Comment | 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 Block Comment | Add a block comment around the selection | Ctrl+Shift+/ |
Remove Block Comment | If the selection contains one or more block comments, remove them | Ctrl+Shift+\ |
Shift Right | Increase indentation on each line in the selection, or the line containing the cursor, if there is no selection | |
Shift Left | Decrease indentation on each line in the selection, or the line containing the cursor, if there is no selection | Shift+Tab |
Correct Indentation | Apply simple indentation rules to the current selection, or the line containing the cursor, if there is no selection | Ctrl+I |
Format | Apply the full C/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 Include | Add an include statement and, optionally, a "using" declaration for the currently selected name | Ctrl+Shift+N |
Sort Lines | Sort the selected lines | Ctrl+Alt+S |
Implement Method... | Open the Implement Method dialog | |
Generate Getters and Setters... | 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 With | Surround the selected statements with a code template | Alt+Shift+Z |