![]() To do so, select the whole region including #region and #endregion directives, press Ctrl+Shift+Alt, and then use the up and down arrow keys. You can move the whole region up and down in the scope. To do so, set the caret at the directive that you want to move, press Ctrl+Shift+Alt, and then use the up and down arrow keys. ![]() ![]() You can move the #region and #endregion directives up and down so that the region includes the neighbouring elements, or so that the elements are left out of the region. You can also move regions in different ways using the Move code element feature: To select a logical code block, press Ctrl+W one or more times to select the current declaration, press Ctrl+Alt+Shift+[. JetBrains Rider will add the #region and #endregion directives and set the caret in the position where you can type the region name. Right in the editor, you can quickly surround the current selection with region. You can also add and remove regions when you automatically reordering types and type members. ![]() JetBrains Rider can help you quickly add, move and remove #region blocks in your code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |