This is an impression-of-quality issue.
The script editor has two sets of commands: Comment/Uncomment and Indent/Unindent. Many other text editors have these commands, but ours operate differently and in a more limited way.
- When you click in a line and click Comment or Uncomment, nothing happens. Other editors will comment or uncomment the line that the cursor is in.
- When you select a block of text, other editors don't care where the selection begins or ends (i.e. it can begin in the middle of a line). GMAT inserts the comment symbol at the beginning of the selection, not at the beginning of the line containing the selection.
- To uncomment something, the comment symbol must be the first character in the selection. This is very restrictive; other editors uncomment any lines touched by the selection.
- Tab doesn't work (see
- "Indent more"/"Indent less" with multiple lines selected works fine
- With just a partial line selected, the indent commands delete the selected text (probably could be another bug)
- With just a cursor and no selection, "Indent more" acts as if you had pressed tab.
- With just a cursor and no selection, "Indent less" just moves the cursor back to the last indent boundary.
- In all cases, MATLAB treats Indent/Unindent as line-mode commands, not cursor-location commands.