ctrl+shift+p, s, s, s, t, a, Enter: Set syntax to Stata
alt+shift+2: Split the window into 2 colums
alt+shift+8: Split the window into 2 rows
ctrl+drag: multiple selection // Stata’s default editor also supports in 15+
drag, alt+F3: Select All
ctrl+/: Comment/un-comment current line// Stata’s default editor also supports
ctrl+shift+/: Block comment current selection
ctrl+l: Select line; Repeat to select next lines
ctrl+j: Join line below to the end of the current line
ctrl+shift+d: Duplicate line(s)
ctrl+]: Indent current line(s)
ctrl+[: Un-indent current line(s)
ctrl+delete/backspace: Delete word-by-word separated by whitespaces, commas or other symbols// Stata’s default editor also supports
ctrl+shift+backspace: Delete from cursor to start of line// Stata’s default editor also supports
ctrl+shift+delete: Delete from cursor to end of line// Stata’s default editor also supports
alt+shift+2: Split the window into 2 colums
alt+shift+8: Split the window into 2 rows
ctrl+drag: multiple selection // Stata’s default editor also supports in 15+
drag, alt+F3: Select All
ctrl+/: Comment/un-comment current line// Stata’s default editor also supports
ctrl+shift+/: Block comment current selection
ctrl+l: Select line; Repeat to select next lines
ctrl+j: Join line below to the end of the current line
ctrl+shift+d: Duplicate line(s)
ctrl+]: Indent current line(s)
ctrl+[: Un-indent current line(s)
ctrl+delete/backspace: Delete word-by-word separated by whitespaces, commas or other symbols// Stata’s default editor also supports
ctrl+shift+backspace: Delete from cursor to start of line// Stata’s default editor also supports
ctrl+shift+delete: Delete from cursor to end of line// Stata’s default editor also supports
command+shift+p, s, s, s, t, a, Enter: Set syntax to Stata
option+command+2: Split the window into 2 colums
option+command+8: Split the window into 2 rows
command+drag: multiple selection // Stata’s default editor also supports in 15+
drag, ctrl+command+g: Select All
command+/: Comment/un-comment current line// Stata’s default editor also supports
command+option+/: Block comment current selection
command+l: Select line; Repeat to select next lines
command+j: Join line below to the end of the current line
command+shift+d: Duplicate line(s)
command+]: Indent current line(s)
command+[: Un-indent current line(s)
command+k+backspace: Delete from cursor to start of line
command+k, command+k: Delete from cursor to end of line
option+command+2: Split the window into 2 colums
option+command+8: Split the window into 2 rows
command+drag: multiple selection // Stata’s default editor also supports in 15+
drag, ctrl+command+g: Select All
command+/: Comment/un-comment current line// Stata’s default editor also supports
command+option+/: Block comment current selection
command+l: Select line; Repeat to select next lines
command+j: Join line below to the end of the current line
command+shift+d: Duplicate line(s)
command+]: Indent current line(s)
command+[: Un-indent current line(s)
command+k+backspace: Delete from cursor to start of line
command+k, command+k: Delete from cursor to end of line
Reindenting the Whole Code (alt+shift+f)
1. Select Preferences-Key Bindings from the top menu, copy & paste the following code right after the [ in the first line of the right tab, and then press ctrl/command+s:
{ "keys": ["alt+shift+f"], "command": "reindent", "args": {"single_line": false }, },
Open Folder... in Windows (ctrl+shift+o)
1. Select Preferences-Key Bindings from the top menu, copy & paste the following code right after the [ in the first line of the right tab, and then press ctrl+s:
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_folder", },
2. ctrl+k, ctrl+b: shortcut to toggle side bar.
- Try SideBarEnhancements which provides useful right-click menu. You can install the package via pressing ctrl+shift+p, p, c, i, Enter and searching SideBarEnhancements.
- In case of macOS, command+o will open both files and folders(shortcut to toggle side bar: command+k, command+b).