The Edit > Selection menu provides commands to operate on the selection.

The Edit Selection menu

The Edit Selection Menu

Edit Selection menu commands
Menu command Keystroke Description
Tabify

Ctrl+K, Tab

Convert space characters in the selection to tabs according to the tab settings for the language.
Untabify

Ctrl+K, Space

Convert tab characters in the selection to spaces according to the tab settings for the language.
Make Uppercase

Ctrl+Shift+U

Convert the letters in the selection to uppercase. If there is no selection, CrossStudio converts the character to the right of the cursor to uppercase and moves the cursor right one character.
Switch Case

Ctrl+U

Switches the letter case of letters in the selection; that is, uppercase characters become lowercase, and lowercase become uppercase. If there is no selection, CrossStudio switches the letter case of the character to the right of the cursor and moves the cursor right one character.
Comment

Ctrl+/

Prefixes lines in the selection with language-specific comment characters. If there is no selectiom, CrossStudio comments the cursor line.
Uncomment Ctrl+Shift+/ Removes the prefixed from lines in the selection that contains language-specific comment characters. If there is no selectiom, CrossStudio uncomments the cursor line.
Increase Line Indent Tab Increases the line indent of the selection. If there is no selection, the cursor is moved to the next tab stop by inserting spaces or a tab character according to the tab settings for the document.
Decrease Line Indent Shift+Tab Decreases the line indent of the selection. If there is no selection, the cursor is moved to the previous tab stop.
Align Left Ctrl+K, Ctrl+J, L Aligns all text in the selection to the leftmost non-blank character in the selection.
Align Center Ctrl+K, Ctrl+J, C Centers all text in the selection between the leftmost and rightmost non-blank characters in the selection.
Align Right Ctrl+K, Ctrl+J, R Aligns all text in the selection to the rightmost non-blank character in the selection.
Sort Ascending   Sorts the selection into ascending lexicographic order.
Sort Descending   Sorts the selection into decending lexicographic order.