Home » Support » Index of All Documentation » Wing IDE Reference Manual » Command Reference »

Editor Browse Mode Commands

Commands available only when the editor is in browse mode (used for VI bindings and possibly others)

enter-insert-mode (pos='before')

Enter editor insert mode Key Bindings: VI/VIM: A invokes enter-insert-mode(pos="after")

enter-replace-mode ()

Enter editor replace mode Key Bindings: VI/VIM: Shift-R

enter-visual-mode (unit='char')

Enter editor visual mode. Unit should be one of 'char', 'line', or 'block'.

previous-select ()

Turn on auto-select using previous mode and selection Key Bindings: VI/VIM: g v

start-select-block ()

Turn on auto-select block mode Key Bindings: Wing IDE: Shift-Ctrl-F8; Brief: Shift-Ctrl-F8; VI/VIM: Shift-Ctrl-F8; Eclipse: Shift-Ctrl-F8; Emacs: Shift-Ctrl-F8; Visual Studio: Shift-Ctrl-F8; OS X: Shift-Command-F8

start-select-char ()

Turn on auto-select mode character by character Key Binding: Shift-F8

start-select-line ()

Turn on auto-select mode line by line Key Bindings: Wing IDE: Ctrl-F8; Brief: Ctrl-F8; VI/VIM: Ctrl-F8; Eclipse: Ctrl-F8; Emacs: Ctrl-F8; Visual Studio: Ctrl-F8; OS X: Command-F8

vi-command-by-name ()

Execute a VI command (implements ":" commands from VI) Key Bindings: VI/VIM: :

vi-set (command)

Perform vi's :set action. The command is the portion after :set. Currently supports ic, noic, ai, noai, number or nu, nonumber or nonu, ro, noro, sm, and nosm. Multiple options can be specied in one call as for :set ic sm ai

Editor Insert Mode Commands

Commands available only when editor is in insert mode (used for VI bindings and possibly others)

enter-browse-mode (provisional=False)

Enter editor browse mode Key Bindings: VI/VIM: Esc

Editor Non Modal Commands

Commands available only when the editor is in non-modal editing mode

exit-visual-mode ()

Exit visual mode and return back to default mode Key Binding: Esc

start-select-block ()

Turn on auto-select block mode Key Bindings: Wing IDE: Shift-Ctrl-F8; Brief: Shift-Ctrl-F8; VI/VIM: Shift-Ctrl-F8; Eclipse: Shift-Ctrl-F8; Emacs: Shift-Ctrl-F8; Visual Studio: Shift-Ctrl-F8; OS X: Shift-Command-F8

start-select-char ()

Turn on auto-select mode character by character Key Binding: Shift-F8

start-select-line ()

Turn on auto-select mode line by line Key Bindings: Wing IDE: Ctrl-F8; Brief: Ctrl-F8; VI/VIM: Ctrl-F8; Eclipse: Ctrl-F8; Emacs: Ctrl-F8; Visual Studio: Ctrl-F8; OS X: Command-F8

Editor Panel Commands

Commands that control splitting up an editor panel. These are available when one split in the editor panel has the keyboard focus.

split-horizontally (new=0)

Split current view horizontally. Key Bindings: VI/VIM: Ctrl-W v; Emacs: Ctrl-X 3

split-horizontally-open-file (filename)

Split current view horizontally and open selected file

split-vertically (new=0)

Split current view vertically. Create new editor in new view when new==1. Key Bindings: Brief: F3; VI/VIM: Ctrl-W s; Emacs: Ctrl-X 2

split-vertically-open-file (filename)

Split current view vertically and open selected file

unsplit (action='current')

Unsplit all editors so there's only one. Action specifies how to choose the remaining displayed editor. One of:

current -- Show current editor
close   -- Close current editor before unsplitting
recent  -- Change to recent buffer before unsplitting
recent-or-close -- Change to recent buffer before closing
split, or close the current buffer if there is only
one split left.

NOTE: The parameters for this command are subject to change in the future. Key Bindings: Brief: F4; VI/VIM: Ctrl-W q invokes unsplit(action="close"); Emacs: Ctrl-X 1

Editor Replace Mode Commands

Commands available only when editor is in replace mode (used for VI bindings and possibly others)

enter-browse-mode (provisional=False)

Enter editor browse mode Key Bindings: VI/VIM: Esc

Editor Split Commands

Commands for a particular editor split, available when the editor in that split has the keyboard focus. Additional commands affecting the editor's content are defined separately.

activate-file-option-menu ()

Activate the file menu for the editor. Key Bindings: Wing IDE: Ctrl-1; Brief: Ctrl-1; VI/VIM: Ctrl-1; Eclipse: Ctrl-1; Emacs: Ctrl-1; Visual Studio: Ctrl-1; OS X: Command-1

grow-split-horizontally ()

Increase width of this split

grow-split-vertically ()

Increase height of this split Key Bindings: VI/VIM: Ctrl-W +

shrink-split-horizontally ()

Decrease width of this split

shrink-split-vertically ()

Decrease height of this split Key Bindings: VI/VIM: Ctrl-W -

visit-history-next ()

Move forward in history to next visited editor position Key Bindings: Wing IDE: Alt-Right; Brief: Alt-Right; VI/VIM: Alt-Right; Eclipse: Alt-Right; Emacs: Alt-Right; Visual Studio: Alt-Right; OS X: Ctrl-.

visit-history-previous ()

Move back in history to previous visited editor position Key Bindings: Wing IDE: Alt-Left; Brief: Alt-Left; VI/VIM: Alt-Left; Eclipse: Alt-Left; Emacs: Alt-Left; Visual Studio: Alt-Left; OS X: Ctrl-Comma

Editor Visual Mode Commands

Commands available only when the editor is in visual mode (used for VI bindings and some others)

enter-browse-mode ()

Enter editor browse mode Key Bindings: VI/VIM: Esc

enter-insert-mode (pos='delete-sel')

Enter editor insert mode Key Bindings: VI/VIM: A invokes enter-insert-mode(pos="after")

enter-visual-mode (unit='char')

Alter type of editor visual mode or exit back to browse mode. Unit should be one of 'char', 'line', or 'block'.

exit-visual-mode ()

Exit visual mode and return back to default mode Key Binding: Esc

vi-command-by-name ()

Execute a VI command (implements ":" commands from VI) Key Bindings: VI/VIM: :

Active Editor Commands

Commands that only apply to editors when they have the keyboard focus. These commands are also available for the Python Shell, Debug Probe, and Debug I/O tools, which subclass the source editor, although some of the commands are modified or disabled as appropriate in those contexts.

activate-symbol-option-menu-1 ()

Activate the 1st symbol menu for the editor. Key Bindings: Wing IDE: Ctrl-2; Brief: Ctrl-2; VI/VIM: Ctrl-2; Eclipse: Ctrl-2; Emacs: Ctrl-2; Visual Studio: Ctrl-2; OS X: Command-2

activate-symbol-option-menu-2 ()

Activate the 2nd symbol menu for the editor. Key Bindings: Wing IDE: Ctrl-3; Brief: Ctrl-3; VI/VIM: Ctrl-3; Eclipse: Ctrl-3; Emacs: Ctrl-3; Visual Studio: Ctrl-3; OS X: Command-3

activate-symbol-option-menu-3 ()

Activate the 3rd symbol menu for the editor. Key Bindings: Wing IDE: Ctrl-4; Brief: Ctrl-4; VI/VIM: Ctrl-4; Eclipse: Ctrl-4; Emacs: Ctrl-4; Visual Studio: Ctrl-4; OS X: Command-4

activate-symbol-option-menu-4 ()

Activate the 4th symbol menu for the editor. Key Bindings: Wing IDE: Ctrl-5; Brief: Ctrl-5; VI/VIM: Ctrl-5; Eclipse: Ctrl-5; Emacs: Ctrl-5; Visual Studio: Ctrl-5; OS X: Command-5

activate-symbol-option-menu-5 ()

Activate the 5th symbol menu for the editor. Key Bindings: Wing IDE: Ctrl-6; Brief: Ctrl-6; VI/VIM: Ctrl-6; Eclipse: Ctrl-6; Emacs: Ctrl-6; Visual Studio: Ctrl-6; OS X: Command-6

backward-char (wrap=1, repeat=<numeric modifier; default=1>)

Move cursor backward one character Key Binding: Left

backward-char-extend (wrap=1, repeat=<numeric modifier; default=1>)

Move cursor backward one character, adjusting the selection range to new position Key Binding: Shift-Left

backward-char-extend-rect (wrap=1, repeat=<numeric modifier; default=1>)

Move cursor backward one character, adjusting the rectangular selection range to new position Key Bindings: Wing IDE: Shift-Alt-Left; Brief: Shift-Alt-Left; VI/VIM: Shift-Alt-Left; Eclipse: Shift-Alt-Left; Emacs: Shift-Alt-Left; Visual Studio: Shift-Alt-Left; OS X: Ctrl-Option-Left

backward-delete-char (repeat=<numeric modifier; default=1>)

Delete one character behind the cursor, or the current selection if not empty. Key Bindings: Wing IDE: BackSpace; Brief: BackSpace; VI/VIM: BackSpace; Eclipse: BackSpace; Emacs: BackSpace; Visual Studio: BackSpace; OS X: Backspace

backward-delete-word (delimiters=None, repeat=<numeric modifier; default=1>)

Delete one word behind of the cursor Key Bindings: Wing IDE: Ctrl-BackSpace; Brief: Ctrl-BackSpace; VI/VIM: Ctrl-BackSpace; Eclipse: Ctrl-BackSpace; Emacs: Ctrl-BackSpace; Visual Studio: Ctrl-BackSpace; OS X: Ctrl-Option-Delete

backward-page (repeat=<numeric modifier; default=1>)

Move cursor backward one page Key Bindings: Wing IDE: Prior; Brief: Prior; VI/VIM: Prior; Eclipse: Prior; Emacs: Prior; Visual Studio: Prior; OS X: Ctrl-Up

backward-page-extend (repeat=<numeric modifier; default=1>)

Move cursor backward one page, adjusting the selection range to new position Key Bindings: Wing IDE: Shift-Prior; Brief: Shift-Prior; VI/VIM: Shift-Prior; Eclipse: Shift-Prior; Emacs: Shift-Prior; Visual Studio: Shift-Prior; OS X: Shift-Page_Up

backward-paragraph (repeat=<numeric modifier; default=1>)

Move cursor backward one paragraph (to next all-whitespace line). Key Bindings: VI/VIM: {

backward-paragraph-extend (repeat=<numeric modifier; default=1>)

Move cursor backward one paragraph (to next all-whitespace line), adjusting the selection range to new position.

backward-tab ()

Outdent line at current position Key Binding: Shift-Tab

backward-word (delimiters=None, gravity='start', repeat=<numeric modifier; default=1>)

Move cursor backward one word. Optionally, provide a string that contains the delimiters to define which characters are part of a word. Gravity may be "start" or "end" to indicate whether cursor is placed at start or end of the word. Key Bindings: Wing IDE: Ctrl-Left; Brief: Ctrl-Left; VI/VIM: Ctrl-Left; Eclipse: Ctrl-Left; Emacs: Ctrl-Left; Visual Studio: Ctrl-Left; OS X: Option-Left

backward-word-extend (delimiters=None, gravity='start', repeat=<numeric modifier; default=1>)

Move cursor backward one word, adjusting the selection range to new position. Optionally, provide a string that contains the delimiters to define which characters are part of a word. Gravity may be "start" or "end" to indicate whether cursor is placed at start or end of the word. Key Bindings: Wing IDE: Ctrl-Shift-Left; Brief: Ctrl-Shift-Left; VI/VIM: Ctrl-Shift-Left; Eclipse: Ctrl-Shift-Left; Emacs: Ctrl-Shift-Left; Visual Studio: Ctrl-Shift-Left; OS X: Ctrl-Shift-Left invokes backward-word-extend(delimiters="_`~!@#$%^&*()+-={}[]\|;:'",.<>/? trn")

beginning-of-line (toggle=True)

Move to beginning of current line. When toggle is True, moves to the end of the leading white space if already at the beginning of the line (and vice versa). Key Bindings: Brief: Shift-Home; VI/VIM: 0 invokes beginning-of-line(toggle=0); Emacs: Home; OS X: Command-Left

beginning-of-line-extend (toggle=True)

Move to beginning of current line, adjusting the selection range to the new position. When toggle is True, moves to the end of the leading white space if already at the beginning of the line (and vice versa). Key Bindings: Emacs: Shift-Home; OS X: Command-Shift-Left

beginning-of-line-text (toggle=True)

Move to end of the leading white space, if any, on the current line. If toggle is True, moves to the beginning of the line if already at the end of the leading white space (and vice versa). Key Bindings: Wing IDE: Home; Brief: Home; VI/VIM: Home; Eclipse: Home; Emacs: Home; Visual Studio: Home

beginning-of-line-text-extend (toggle=True)

Move to end of the leading white space, if any, on the current line, adjusting the selection range to the new position. If toggle is True, moves to the beginning of the line if already at the end of the leading white space (and vice versa). Key Bindings: Wing IDE: Shift-Home; Brief: Shift-Home; VI/VIM: Shift-Home; Eclipse: Shift-Home; Emacs: Shift-Home; Visual Studio: Shift-Home

beginning-of-screen-line ()

Move to beginning of current wrapped line Key Bindings: VI/VIM: g 0

beginning-of-screen-line-extend ()

Move to beginning of current wrapped line, extending selection

beginning-of-screen-line-text ()

Move to first non-blank character at beginning of current wrapped line Key Bindings: VI/VIM: g ^

beginning-of-screen-line-text-extend ()

Move to first non-blank character at beginning of current wrapped line, extending selection

brace-match ()

Match brace at current cursor position, selecting all text between the two and hilighting the braces Key Bindings: Wing IDE: Ctrl-E; Eclipse: Ctrl-E; Emacs: Ctrl-M; Visual Studio: Ctrl-E; OS X: Command-B

cancel ()

Cancel current editor command

cancel-autocompletion ()

Cancel any active autocompletion.

case-lower (repeat=<numeric modifier; default=1>)

Change case of the current selection, or character ahead of the cursor if there is no selection, to lower case Key Bindings: Visual Studio: Ctrl-U

case-lower-next-move (repeat=<numeric modifier; default=1>)

Change case of text spanned by next cursor movement to lower case Key Bindings: VI/VIM: g u

case-swap (repeat=<numeric modifier; default=1>)

Change case of the current selection, or character ahead of the cursor if there is no selection, so each letter is the opposite of its current case Key Bindings: VI/VIM: ~

case-swap-next-move (repeat=<numeric modifier; default=1>)

Change case of text spanned by next cursor movement so each letter is the opposite of its current case Key Bindings: VI/VIM: g ~

case-title (repeat=<numeric modifier; default=1>)

Change case of the current selection, or character ahead of the cursor if there is no selection, to title case (first letter of each word capitalized)

case-title-next-move (repeat=<numeric modifier; default=1>)

Change case of text spanned by next cursor movement to title case (first letter of each word capitalized)

case-upper (repeat=<numeric modifier; default=1>)

Change case of the current selection, or character ahead of the cursor if there is no selection, to upper case Key Bindings: Visual Studio: Ctrl-Shift-U

case-upper-next-move (repeat=<numeric modifier; default=1>)

Change case of text spanned by next cursor movement to upper case Key Bindings: VI/VIM: g Shift-U

center-cursor ()

Scroll so cursor is centered on display Key Bindings: Brief: Ctrl-C; VI/VIM: z .; Emacs: Ctrl-L

clear ()

Clear selected text

clear-move-command ()

Clear any pending move command action, as for VI mode Key Bindings: VI/VIM: Esc

complete-autocompletion (append='')

Complete the current active autocompletion.

copy ()

Copy selected text Key Bindings: Wing IDE: Ctrl-Insert; Brief: Ctrl-Insert; VI/VIM: Ctrl-Insert; Eclipse: Ctrl-Insert; Emacs: Ctrl-Insert; Visual Studio: Ctrl-Insert; OS X: Command-C

copy-line ()

Copy the current lines(s) to clipboard

copy-range (start_line, end_line, target_line)

Copy the given range of lines to the given target line. Copies to current line if target_line is '.'.

copy-selection-or-line ()

Copy the current selection or current line if there is no selection. The text is placed on the clipboard.

cursor-move-to-bottom (offset=<numeric modifier; default=0>)

Move cursor to bottom of display (without scrolling), optionally at an offset of given number of lines before bottom Key Bindings: VI/VIM: Shift-L

cursor-move-to-center ()

Move cursor to center of display (without scrolling) Key Bindings: VI/VIM: Shift-M

cursor-move-to-top (offset=<numeric modifier; default=0>)

Move cursor to top of display (without scrolling), optionally at an offset of given number of lines below top Key Bindings: VI/VIM: Shift-H

cursor-to-bottom ()

Scroll so cursor is centered at bottom of display Key Bindings: VI/VIM: z -

cursor-to-top ()

Scroll so cursor is centered at top of display Key Bindings: VI/VIM: z Return

cut ()

Cut selected text Key Bindings: Wing IDE: Shift-Delete; Brief: Shift-Delete; VI/VIM: Shift-Delete; Eclipse: Shift-Delete; Emacs: Shift-Delete; Visual Studio: Shift-Delete; OS X: Command-X

cut-line ()

Cut the current line(s) to clipboard. Key Bindings: Visual Studio: Ctrl-L

cut-selection-or-line ()

Cut the current selection or current line if there is no selection. The text is placed on the clipboard. Key Bindings: Visual Studio: Shift-Delete

delete-line (repeat=<numeric modifier; default=1>)

Delete the current line or lines when the selection spans multiple lines or given repeat is > 1 Key Bindings: Wing IDE: Ctrl-Shift-C; Eclipse: Ctrl-Shift-C

delete-line-insert (repeat=<numeric modifier; default=1>)

Delete the current line or lines when the selection spans multiple lines or given repeat is > 1. Enters insert mode (when working with modal key bindings). Key Bindings: VI/VIM: Shift-S

delete-next-move (repeat=<numeric modifier; default=1>)

Delete the text covered by the next cursor move command. Key Bindings: VI/VIM: d

delete-next-move-insert (repeat=<numeric modifier; default=1>)

Delete the text covered by the next cursor move command and then enter insert mode (when working in a modal editor key binding) Key Bindings: VI/VIM: c

delete-range (start_line, end_line, register=None)

Delete given range of lines, copying them into given register (or currently selected default register if register is None

delete-to-end-of-line (repeat=<numeric modifier; default=1>, post_offset=0)

Delete everything between the cursor and end of line Key Bindings: VI/VIM: Shift-D invokes delete-to-end-of-line(post_offset=-1)

delete-to-end-of-line-insert (repeat=<numeric modifier; default=1>)

Delete everything between the cursor and end of line and enter insert move (when working in a modal editor key binding) Key Bindings: VI/VIM: Shift-C

delete-to-start-of-line ()

Delete everything between the cursor and start of line Key Bindings: VI/VIM: Ctrl-U

duplicate-line (pos='below')

Duplicate the current line or lines. Places the duplicate on the line following the selection if pos is 'below' or before the selection if it is 'above'. Key Bindings: Wing IDE: Ctrl-Shift-V; Eclipse: Ctrl-Shift-V

duplicate-line-above ()

Duplicate the current line or lines above the selection. Key Bindings: Wing IDE: Ctrl-Shift-Y; Eclipse: Ctrl-Shift-Y

enclose (start='(', end=')')

Enclose the selection or the rest of the current line when there is no selection with the given start and end strings. The caret is moved to the end of the enclosed text. Key Bindings: Wing IDE: Ctrl-( invokes enclose(start="(", end=")"); Brief: Ctrl-( invokes enclose(start="(", end=")"); VI/VIM: Ctrl-( invokes enclose(start="(", end=")"); Eclipse: Ctrl-( invokes enclose(start="(", end=")"); Emacs: Ctrl-( invokes enclose(start="(", end=")"); Visual Studio: Ctrl-( invokes enclose(start="(", end=")")

end-of-document ()

Move cursor to end of document Key Bindings: Wing IDE: Ctrl-End; Brief: Ctrl-End; VI/VIM: Ctrl-End; Eclipse: Ctrl-End; Emacs: Ctrl-End; Visual Studio: Ctrl-End; OS X: Command-Down

end-of-document-extend ()

Move cursor to end of document, adjusting the selection range to new position Key Bindings: Wing IDE: Ctrl-Shift-End; Brief: Ctrl-Shift-End; VI/VIM: Ctrl-Shift-End; Eclipse: Ctrl-Shift-End; Emacs: Ctrl-Shift-End; Visual Studio: Ctrl-Shift-End; OS X: Command-Shift-Down

end-of-line (count=<numeric modifier; default=1>)

Move to end of current line Key Bindings: Wing IDE: End; Brief: End; VI/VIM: End; Eclipse: End; Emacs: End; Visual Studio: End; OS X: Command-Right

end-of-line-extend (count=<numeric modifier; default=1>)

Move to end of current line, adjusting the selection range to new position Key Bindings: Wing IDE: Shift-End; Brief: Shift-End; VI/VIM: Shift-End; Eclipse: Shift-End; Emacs: Shift-End; Visual Studio: Shift-End; OS X: Command-Shift-Right

end-of-screen-line (count=<numeric modifier; default=1>)

Move to end of current wrapped line Key Bindings: VI/VIM: g $

end-of-screen-line-extend (count=<numeric modifier; default=1>)

Move to end of current wrapped line, extending selection

exchange-point-and-mark ()

When currently marking text, this exchanges the current position and mark ends of the current selection Key Bindings: VI/VIM: o; Emacs: Ctrl-X Ctrl-X

filter-next-move (repeat=<numeric modifier; default=1>)

Filter the lines covered by the next cursor move command through an external command and replace the lines with the result Key Bindings: VI/VIM: !

filter-range (cmd, start_line=0, end_line=-1)

Filter a range of lines in the editor through an external command and replace the lines with the result. Filters the whole file by default. Filters nothing and opens up a scratch buffer with the output of the command if start_line and end_line are both -1.

filter-selection (cmd)

Filter the current selection through an external command and replace the lines with the result Key Bindings: VI/VIM: !

form-feed ()

Place a form feed character at the current cursor position

forward-char (wrap=1, repeat=<numeric modifier; default=1>)

Move cursor forward one character Key Binding: Right

forward-char-extend (wrap=1, repeat=<numeric modifier; default=1>)

Move cursor forward one character, adjusting the selection range to new position Key Binding: Shift-Right

forward-char-extend-rect (wrap=1, repeat=<numeric modifier; default=1>)

Move cursor forward one character, adjusting the rectangular selection range to new position Key Bindings: Wing IDE: Shift-Alt-Right; Brief: Shift-Alt-Right; VI/VIM: Shift-Alt-Right; Eclipse: Shift-Alt-Right; Emacs: Shift-Alt-Right; Visual Studio: Shift-Alt-Right; OS X: Ctrl-Option-Right

forward-delete-char (repeat=<numeric modifier; default=1>)

Delete one character in front of the cursor Key Binding: Delete

forward-delete-char-insert (repeat=<numeric modifier; default=1>)

Delete one char in front of the cursor and enter insert mode (when working in modal key bindings) Key Bindings: VI/VIM: s

forward-delete-char-within-line (repeat=<numeric modifier; default=1>)

Delete one character in front of the cursor unless at end of line, in which case delete backward. Do nothing if the line is empty. This is VI style 'x' in browser mode. Key Bindings: VI/VIM: x

forward-delete-word (delimiters=None, repeat=<numeric modifier; default=1>)

Delete one word in front of the cursor Key Bindings: Wing IDE: Ctrl-Delete; Brief: Ctrl-Delete; VI/VIM: Ctrl-Delete; Eclipse: Ctrl-Delete; Emacs: Ctrl-Delete; Visual Studio: Ctrl-Delete; OS X: Option-Delete

forward-delete-word-insert (delimiters=None, repeat=<numeric modifier; default=1>)

Delete one word in front of the cursor and enter insert mode (when working in modal key bindings)

forward-page (repeat=<numeric modifier; default=1>)

Move cursor forward one page Key Bindings: Wing IDE: Next; Brief: Next; VI/VIM: Next; Eclipse: Next; Emacs: Next; Visual Studio: Next; OS X: Ctrl-Down

forward-page-extend (repeat=<numeric modifier; default=1>)

Move cursor forward one page, adjusting the selection range to new position Key Bindings: Wing IDE: Shift-Next; Brief: Shift-Next; VI/VIM: Shift-Next; Eclipse: Shift-Next; Emacs: Shift-Next; Visual Studio: Shift-Next; OS X: Shift-Page_Down

forward-paragraph (repeat=<numeric modifier; default=1>)

Move cursor forward one paragraph (to next all-whitespace line). Key Bindings: VI/VIM: }

forward-paragraph-extend (repeat=<numeric modifier; default=1>)

Move cursor forward one paragraph (to next all-whitespace line), adjusting the selection range to new position.

forward-tab ()

Place a tab character at the current cursor position Key Binding: Ctrl-T

forward-word (delimiters=None, gravity='start', repeat=<numeric modifier; default=1>)

Move cursor forward one word. Optionally, provide a string that contains the delimiters to define which characters are part of a word. Gravity may be "start" or "end" to indicate whether cursor is placed at start or end of the word. Key Bindings: Wing IDE: Ctrl-Right; Brief: Ctrl-Right; VI/VIM: Ctrl-Right; Eclipse: Ctrl-Right; Emacs: Ctrl-Right; Visual Studio: Ctrl-Right; OS X: Ctrl-Right invokes forward-word(delimiters="_`~!@#$%^&*()+-={}[]\|;:'",.<>/? trn")

forward-word-extend (delimiters=None, gravity='start', repeat=<numeric modifier; default=1>)

Move cursor forward one word, adjusting the selection range to new position. Optionally, provide a string that contains the delimiters to define which characters are part of a word. Gravity may be "start" or "end" to indicate whether cursor is placed at start or end of the word. Key Bindings: Wing IDE: Ctrl-Shift-Right; Brief: Ctrl-Shift-Right; VI/VIM: Ctrl-Shift-Right; Eclipse: Ctrl-Shift-Right; Emacs: Ctrl-Shift-Right; Visual Studio: Ctrl-Shift-Right; OS X: Option-Shift-Right

goto-overridden-method ()

Goes to the method that is overridden by the current method

hide-selection ()

Turn off display of the current text selection

indent-to-match (toggle=False)

Indent the current line or selected region to match indentation of preceding non-blank line. Set toggle=True to indent instead of one level higher if already at the matching position. Key Binding: Ctrl-=

indent-to-next-indent-stop ()

Indent to next indent stop from the current position. Acts like indent command if selection covers multiple lines.

isearch-backward (search_string=None, repeat=<numeric modifier; default=1>)

Initiate incremental mini-search backward from the cursor position, optionally entering the given search string Key Bindings: Wing IDE: Ctrl-Shift-U; Eclipse: Ctrl-Shift-U; Emacs: Ctrl-R; Visual Studio: Ctrl-Shift-U; OS X: Command-Shift-U

isearch-backward-regex (search_string=None, repeat=<numeric modifier; default=1>)

Initiate incremental regular expression mini-search backward from the cursor position, optionally entering the given search string Key Bindings: VI/VIM: ?; Emacs: Ctrl-Alt-R

isearch-forward (search_string=None, repeat=<numeric modifier; default=1>)

Initiate incremental mini-search forward from the cursor position, optionally entering the given search string Key Bindings: Wing IDE: Ctrl-U; Eclipse: Ctrl-U; Emacs: Ctrl-S; Visual Studio: Ctrl-I; OS X: Command-U

isearch-forward-regex (search_string=None, repeat=<numeric modifier; default=1>)

Initiate incremental regular expression mini-search forward from the cursor position, optionally entering the given search string Key Bindings: VI/VIM: /; Emacs: Ctrl-Alt-S

isearch-repeat (reverse=False, repeat=<numeric modifier; default=1>)

Repeat the most recent isearch, using same string and regex/text. Reverse direction when reverse is True. Key Bindings: VI/VIM: n

isearch-sel-backward (persist=True, whole_word=False, repeat=<numeric modifier; default=1>)

Initiate incremental mini-search backward from the cursor position, using current selection as the search string. Set persist=False to do the search but end the interactive search session immediately. Key Bindings: Wing IDE: Ctrl-Shift-B; VI/VIM: # invokes isearch-sel-backward(persist=0, whole_word=1); Eclipse: Ctrl-Shift-B; Emacs: Ctrl-C R; Visual Studio: Ctrl-Shift-B

isearch-sel-forward (persist=True, whole_word=False, repeat=<numeric modifier; default=1>)

Initiate incremental mini-search forward from the cursor position, using current selection as the search string. Set persist=False to do the search but end the interactive search session immediately. Key Bindings: Wing IDE: Ctrl-B; VI/VIM: * invokes isearch-sel-forward(persist=0, whole_word=1); Eclipse: Ctrl-B; Emacs: Ctrl-C S; Visual Studio: Ctrl-B

kill-line ()

Kill rest of line from cursor to end of line, and place it into the clipboard with any other contiguously removed lines. End-of-line is removed only if there is nothing between the cursor and the end of the line. Key Bindings: Brief: Alt-D; Emacs: Ctrl-K; OS X: Ctrl-k

middle-of-screen-line ()

Move to middle of current wrapped line Key Bindings: VI/VIM: g m

middle-of-screen-line-extend ()

Move to middle of current wrapped line, extending selection

move-line-down (indent=True, repeat=<numeric modifier; default=1>)

Move the current line or lines up down line, optionally indenting to match the new position Key Bindings: Wing IDE: Ctrl-Shift-Down; Eclipse: Ctrl-Shift-Down

move-line-up (indent=True, repeat=<numeric modifier; default=1>)

Move the current line or lines up one line, optionally indenting to match the new position Key Bindings: Wing IDE: Ctrl-Shift-Up; Eclipse: Ctrl-Shift-Up

move-range (start_line, end_line, target_line)

Move the given range of lines to the given target line. Moves to current line if target_line is '.'.

move-to-register (unit='char', cut=0, num=<numeric modifier; default=1>)

Cut or copy a specified number of characters or lines, or the current selection. Set cut=1 to remove the range of text from the editor after moving to register (otherwise it is just copied). Unit should be one of 'char' or 'line' or 'sel' for current selection. Key Bindings: VI/VIM: Shift-Y invokes move-to-register(unit="line")

move-to-register-next-move (cut=0, repeat=<numeric modifier; default=1>)

Move the text spanned by the next cursor motion to a register Key Bindings: VI/VIM: y

new-line ()

Place a new line at the current cursor position Key Binding: Return

new-line-after ()

Place a new line after the current line Key Bindings: Wing IDE: Ctrl-Return; Brief: Ctrl-Return; VI/VIM: Ctrl-Return; Eclipse: Ctrl-Return; Emacs: Ctrl-Return; Visual Studio: Ctrl-Return

new-line-before ()

Place a new line before the current line Key Bindings: Wing IDE: Shift-Return; Brief: Shift-Return; VI/VIM: Shift-Return; Eclipse: Shift-Return; Emacs: Shift-Return; Visual Studio: Shift-Return

next-blank-line (threshold=0, repeat=<numeric modifier; default=1>)

Move to the next blank line in the file, if any. If threshold>0 then a line is considered blank if it contains less than that many characters after leading and trailing whitespace are removed. Key Bindings: Emacs: Alt-} invokes next-blank-line(threshold=1)

next-block (count=1, ignore_indented=True)

Select the next block. Will ignore indented blocks under the current block unless ignore_indented is False. Specify a count of more than 1 to go forward multiple blocks.

next-line (cursor='same', repeat=<numeric modifier; default=1>)

Move to screen next line, optionally repositioning character within line: 'same' to leave in same horizontal position, 'start' at start, 'end' at end, or 'fnb' for first non-blank char. Key Binding: Down

next-line-extend (cursor='same', repeat=<numeric modifier; default=1>)

Move to next screen line, adjusting the selection range to new position, optionally repositioning character within line: same' to leave in same horizontal position, 'start' at start, 'end' at end, 'fnb' for first non-blank char, or 'xcode' to simulate XCode style Shift-Alt line selection. Key Binding: Shift-Down

next-line-extend-rect (cursor='same', repeat=<numeric modifier; default=1>)

Move to next screen line, adjusting the rectangular selection range to new position, optionally repositioning character within line: same' to leave in same horizontal position, 'start' at start, 'end' at end, or 'fnb' for first non-blank char. Key Bindings: Wing IDE: Shift-Alt-Down; Brief: Shift-Alt-Down; VI/VIM: Shift-Alt-Down; Eclipse: Shift-Alt-Down; Emacs: Shift-Alt-Down; Visual Studio: Shift-Alt-Down; OS X: Ctrl-Option-Down

next-line-in-file (cursor='start', repeat=<numeric modifier; default=1>)

Move to next line in file, repositioning character within line: 'start' at start, 'end' at end, or 'fnb' for first non-blank char. Key Bindings: VI/VIM: + invokes next-line-in-file(cursor="fnb")

next-scope (count=1, sibling_only=False)

Select the next scope. Specify a count of more than 1 to go forward multiple scopes. If sibling_only is true, move only to other scopes of the same parent. Key Bindings: Eclipse: Ctrl-Shift-Down

next-statement (count=1, ignore_indented=True)

Select the next statement. Will ignore indented statements under the current statements unless ignore_indented is False. Specify a count of more than 1 to go forward multiple statements. Key Bindings: Eclipse: Alt-Shift-Right

open-line ()

Open the current line by inserting a newline after the caret Key Bindings: Emacs: Ctrl-O

paste ()

Paste text from clipboard Key Bindings: Wing IDE: Shift-Insert; Brief: Shift-Insert; VI/VIM: Shift-Insert; Eclipse: Shift-Insert; Emacs: Shift-Insert; Visual Studio: Shift-Insert; OS X: Ctrl-y

paste-register (pos=1, indent=0, cursor=-1)

Paste text from register as before or after the current position. If the register contains only lines, then the lines are pasted before or after current line (rather than at cursor). If the register contains fragments of lines, the text is pasted over the current selection or either before or after the cursor. Set pos = 1 to paste after, or -1 to paste before. Set indent=1 to indent the pasted text to match current line. Set cursor=-1 to place cursor before lines or cursor=1 to place it after lines after paste completes. Key Bindings: VI/VIM: p

previous-blank-line (threshold=0, repeat=<numeric modifier; default=1>)

Move to the previous blank line in the file, if any. If threshold>0 then a line is considered blank if it contains less than that many characters after leading and trailing whitespace are removed. Key Bindings: Emacs: Alt-{ invokes previous-blank-line(threshold=1)

previous-block (count=1, ignore_indented=True)

Select the previous block. Will ignore indented blocks under the current block unless ignore_indented is False. Specify a count of more than 1 to go backward multiple blocks.

previous-line (cursor='same', repeat=<numeric modifier; default=1>)

Move to previous screen line, optionally repositioning character within line: same' to leave in same horizontal position, 'start' at start, 'end' at end, or 'fnb' for first non-blank char. Key Binding: Up

previous-line-extend (cursor='same', repeat=<numeric modifier; default=1>)

Move to previous screen line, adjusting the selection range to new position, optionally repositioning character within line: same' to leave in same horizontal position, 'start' at start, 'end' at end, 'fnb' for first non-blank char, or 'xcode' to simulate XCode style Shift-Alt line selection. Key Binding: Shift-Up

previous-line-extend-rect (cursor='same', repeat=<numeric modifier; default=1>)

Move to previous screen line, adjusting the rectangular selection range to new position, optionally repositioning character within line: same' to leave in same horizontal position, 'start' at start, 'end' at end, or 'fnb' for first non-blank char. Key Bindings: Wing IDE: Shift-Alt-Up; Brief: Shift-Alt-Up; VI/VIM: Shift-Alt-Up; Eclipse: Shift-Alt-Up; Emacs: Shift-Alt-Up; Visual Studio: Shift-Alt-Up; OS X: Ctrl-Option-Up

previous-line-in-file (cursor='start', repeat=<numeric modifier; default=1>)

Move to previous line in file, repositioning character within line: 'start' at start, 'end' at end, or 'fnb' for first non-blank char. Key Bindings: VI/VIM: - invokes previous-line-in-file(cursor="fnb")

previous-scope (count=1, sibling_only=False)

Select the previous scope. Specify a count of more than 1 to go backward multiple scopes. If sibling_only is true, move only to other scopes of the same parent. Key Bindings: Eclipse: Ctrl-Shift-Up

previous-statement (count=1, ignore_indented=True)

Select the previous statement. Will ignore indented statements under the current statements unless ignore_indented is False. Specify a count of more than 1 to go back multiple statements. Key Bindings: Eclipse: Alt-Shift-Left

profile-editor-start ()

Turn on profiling for the current source editor

profile-editor-stop ()

Stop profiling and print stats to stdout

reanalyze-file ()

Rescan file for code analysis.

redo ()

Redo last action Key Bindings: Wing IDE: Ctrl-Y; Brief: Ctrl-U; VI/VIM: Ctrl-R; Eclipse: Ctrl-Y; Emacs: Ctrl-.; Visual Studio: Ctrl-Y; OS X: Command-Shift-Z

repeat-command (repeat=<numeric modifier; default=1>)

Repeat the last editor command Key Bindings: VI/VIM: .

repeat-search-char (opposite=0, repeat=<numeric modifier; default=1>)

Repeat the last search_char operation, optionally in the opposite direction. Key Bindings: VI/VIM: ;

rstrip-each-line ()

Strip trailing whitespace from each line.

scroll-text-down (repeat=<numeric modifier; default=1>, move_cursor=True)

Scroll text down a line w/o moving cursor's relative position on screen. Repeat is number of lines or if >0 and <1.0 then percent of screen. Set move_cursor to False to leave cursor in current position within the source, otherwise it is moved so the cursor remains on same screen line. Key Bindings: Wing IDE: Ctrl-Shift-Down; Brief: Ctrl-Shift-Down; VI/VIM: Ctrl-Shift-Down; Eclipse: Ctrl-Shift-Down; Emacs: Ctrl-Shift-Down; Visual Studio: Ctrl-Shift-Down

scroll-text-left (repeat=<numeric modifier; default=1>)

Scroll text left a column w/o moving cursor's relative position on screen. Repeat is number of columns or if >0 and <1.0 then percent of screen. Key Bindings: VI/VIM: z l

scroll-text-page-down (repeat=<numeric modifier; default=1>, move_cursor=True)

Scroll text down a page w/o moving cursor's relative position on screen. Repeat is number of pages or if >0 and <1.0 then percent of screen. Set move_cursor to False to leave cursor in current position within the source, otherwise it is moved so the cursor remains on same screen line.

scroll-text-page-up (repeat=<numeric modifier; default=1>, move_cursor=True)

Scroll text up a page w/o moving cursor's relative position on screen. Repeat is number of pages or if >0 and <1.0 then percent of screen. Set move_cursor to False to leave cursor in current position within the source, otherwise it is moved so the cursor remains on same screen line.

scroll-text-right (repeat=<numeric modifier; default=1>)

Scroll text right a column w/o moving cursor's relative position on screen. Repeat is number of columns or if >0 and <1.0 then percent of screen. Key Bindings: VI/VIM: z h

scroll-text-up (repeat=<numeric modifier; default=1>, move_cursor=True)

Scroll text up a line w/o moving cursor's relative position on screen. Repeat is number of lines or if >0 and <1.0 then percent of screen. Set move_cursor to False to leave cursor in current position within the source, otherwise it is moved so the cursor remains on same screen line. Key Bindings: Wing IDE: Ctrl-Shift-Up; Brief: Ctrl-Shift-Up; VI/VIM: Ctrl-Shift-Up; Eclipse: Ctrl-Shift-Up; Emacs: Ctrl-Shift-Up; Visual Studio: Ctrl-Shift-Up

scroll-to-cursor ()

Scroll to current cursor position, if not already visible

scroll-to-end (move_caret=False)

Scroll to the end of the text in the editor. Set move_caret to control whether the caret is moved. Key Bindings: OS X: End

scroll-to-start (move_caret=False)

Scroll to the top of the text in the editor. Set move_caret to control whether the the caret is moved. Key Bindings: OS X: Home

search-char (dir=1, pos=0, repeat=<numeric modifier; default=1>, single_line=0)

Search for the given character. Searches to right if dir > 0 and to left if dir < 0. Optionally place cursor pos characters to left or right of the target (e.g., use -1 to place one to left). If repeat > 1, the Nth match is found. Set single_line=1 to search only within the current line. Key Bindings: VI/VIM: F invokes search-char(dir=1, single_line=1)

select-all ()

Select all text in the editor Key Bindings: Wing IDE: Ctrl-A; Eclipse: Ctrl-A; Visual Studio: Ctrl-A; OS X: Command-A

select-block ()

Select the block the cursor is in.

select-less ()

Select less code; undoes the last select-more command Key Bindings: Wing IDE: Ctrl-Down; Brief: Ctrl-Down; VI/VIM: Ctrl-Down; Eclipse: Ctrl-Down; Emacs: Ctrl-Down; Visual Studio: Ctrl-Down

select-lines ()

Select the current line or lines

select-more ()

Select more code on either the current line or larger multi-line blocks. Key Bindings: Wing IDE: Ctrl-Up; Brief: Ctrl-Up; VI/VIM: Ctrl-Up; Eclipse: Ctrl-Up; Emacs: Ctrl-Up; Visual Studio: Ctrl-Up; OS X: Option-Up

select-scope ()

Select the scope the cursor is in.

select-statement ()

Select the statement the cursor is in.

selection-add-next-occurence (skip_current=False, reverse=False)

Add another selection containing the text of the current selection. If skip_current is true, the current selection will be deselected. If nothing is currently selected, select the current word. Searches backwards if reverse is true. Key Bindings: Wing IDE: Ctrl-Shift-D; Eclipse: Ctrl-Shift-D; Visual Studio: Ctrl-Shift-D; OS X: Command-Y

set-mark-command (unit='char')

Set start of text marking for selection at current cursor position. Subsequently, all cursor move operations will automatically extend the text selection until stop-mark-command is issued. Unit defines what is selected: can be one of char, line, or block (rectangle). Key Bindings: Emacs: Ctrl-Space

set-register ()

Set the register to use for subsequent cut/copy/paste operations Key Bindings: VI/VIM: "

show-autocompleter ()

Show the auto-completer for current cursor position Key Bindings: Wing IDE: Ctrl-space; Eclipse: Ctrl-space; Emacs: Alt-Tab; Visual Studio: Ctrl-J; OS X: Ctrl-space

show-selection ()

Turn on display of the current text selection

smart-tab ()

Implement smart handling of tab key. The behavior varies by context as follows:

System Message: ERROR/3 (<string>, line 991); backlinks:

Unexpected indentation.
  • In Non-Python code, always indents to the next indent stop
  • On a non-blank line when cursor is at end or before a comment, insert tab
  • On a where indent does not match the computed indent level, move to the matching indent level
  • Otherwise decrease indent one level (thus a non-blank line toggles between matching position and one block higher)

start-of-document ()

Move cursor to start of document Key Bindings: Wing IDE: Ctrl-Home; Brief: Ctrl-Home; VI/VIM: Ctrl-Home; Eclipse: Ctrl-Home; Emacs: Ctrl-Home; Visual Studio: Ctrl-Home; OS X: Command-Up

start-of-document-extend ()

Move cursor to start of document, adjusting the selection range to new position Key Bindings: Wing IDE: Ctrl-Shift-Home; Brief: Ctrl-Shift-Home; VI/VIM: Ctrl-Shift-Home; Eclipse: Ctrl-Shift-Home; Emacs: Ctrl-Shift-Home; Visual Studio: Ctrl-Shift-Home; OS X: Command-Shift-Up

stop-mark-command (deselect=True)

Stop text marking for selection at current cursor position, leaving the selection set as is. Subsequent cursor move operations will deselect the range and set selection to cursor position. Deselect immediately when deselect is True. Key Bindings: Emacs: Ctrl-G

swap-lines (previous=False)

Swap the line at start of current selection with the line that follows it, or the preceding line if previous is True. Key Bindings: Wing IDE: Ctrl-Shift-L; Eclipse: Ctrl-Shift-L; Emacs: Ctrl-X Ctrl-T invokes swap-lines(previous=True)

tab-key ()

Implement the tab key, the action of which is configurable by preference Key Binding: Tab

undo ()

Undo last action Key Bindings: Wing IDE: Ctrl-Z; Brief: Alt-U; VI/VIM: u; Eclipse: Ctrl-Z; Emacs: Ctrl-/; Visual Studio: Ctrl-Z; OS X: Command-Z

yank-line ()

Yank contents of kill buffer created with kill-line into the edit buffer Key Bindings: Emacs: Ctrl-Y

General Editor Commands

Editor commands that act on the current (most recently active) source editor, whether or not it currently has the keyboard focus.

check-indent-consistency ()

Check whether indents consistently use spaces or tabs throughout the file.

comment-out-region (style=None)

Comment out the selected region. The style of commenting can be controlled with the style argument: 'indented' uses the default comment style indented at end of leading white space and 'block' uses a block comment in column zero. If not given, the style configured with the Editor / Block Comment Style preference is used. Each call adds a level of commenting. Key Bindings: Wing IDE: Ctrl-/; Eclipse: Ctrl-/; Emacs: Ctrl-C C; Visual Studio: Ctrl-K Ctrl-C; OS X: Command-'

comment-out-toggle (style=None)

Comment out the selected lines. This command is not available if they lines are already commented out. The style of commenting can be controlled with the style argument: 'indented' uses the default comment style indented at end of leading white space and 'block' uses a block comment in column zero. If not given, the style configured with the Editor / Block Comment Style preference is used.

comment-toggle (style=None)

Toggle commenting out of the selected lines. The style of commenting can be controlled with the style argument: 'indented' uses the default comment style indented at end of leading white space and 'block' uses a block comment in column zero. If not given, the style configured with the Editor / Block Comment Style preference is used. Key Bindings: Wing IDE: Ctrl-.; Eclipse: Ctrl-.; Emacs: Ctrl-C #; Visual Studio: Ctrl-K Ctrl-T; OS X: Command-;

convert-indents-to-mixed (indent_size)

Convert all lines with leading spaces to mixed tabs and spaces.

convert-indents-to-spaces-only (indent_size)

Convert all lines containing leading tabs to spaces only.

convert-indents-to-tabs-only ()

Convert all indentation to use tab characters only and no spaces

evaluate-file-in-shell (restart_shell=None)

Run the contents of the editor within the Python Shell Key Bindings: Wing IDE: Ctrl-Alt-V; Eclipse: Ctrl-Alt-V

evaluate-sel-in-debug-probe (whole_lines=None)

Evaluate the current selection from the editor within the Debug Probe tool. When whole_lines is set, the selection is rounded to whole lines before evaluation. When unspecified (set to None), the setting from the Shell's Option menu is used instead. Key Bindings: Wing IDE: Ctrl-Alt-D; Eclipse: Ctrl-Alt-D

evaluate-sel-in-shell (restart_shell=False, whole_lines=None)

Evaluate the current selection from the editor within the Python Shell tool, optionally restarting the shell first. When whole_lines is set, the selection is rounded to whole lines before evaluation. When unspecified (set to None), the setting from the Shell's Option menu is used instead. Key Bindings: Wing IDE: Ctrl-Alt-E; Eclipse: Ctrl-Alt-E; Emacs: Ctrl-C |

execute-kbd-macro (register='a', repeat=<numeric modifier; default=1>)

Execute most recently recorded keyboard macro. If register is None then the user is asked to enter a letter a-z for the register where the macro is filed. Otherwise, register 'a' is used by default. Key Bindings: Wing IDE: Ctrl-M; Brief: F8; VI/VIM: @ invokes execute-kbd-macro(register=None); Eclipse: Ctrl-M; Emacs: Ctrl-X E; Visual Studio: Ctrl-M; OS X: Command-M

fill-paragraph ()

Attempt to auto-justify the paragraph around the current start of selection Key Bindings: Wing IDE: Ctrl-J; VI/VIM: g q q; Eclipse: Ctrl-J; Emacs: Ctrl-J; Visual Studio: Ctrl-K Ctrl-F; OS X: Command-J

find-symbol ()

Allow user to visit point of definition of a source symbol in the current editor context by typing a fragment of the name Key Bindings: Wing IDE: Ctrl-Shift-T; VI/VIM: Ctrl-Shift-T; Eclipse: Ctrl-Shift-T; Emacs: Ctrl-X G; Visual Studio: Ctrl-Shift-T; OS X: Command-Shift-T

fold-collapse-all ()

Collapse all fold points in the current file Key Bindings: Wing IDE: Alt-Home; Brief: Alt-Home; VI/VIM: Alt-Home; Eclipse: Alt-Home; Emacs: Alt-Home; Visual Studio: Alt-Home; OS X: Command-Ctrl--

fold-collapse-all-clicked ()

Collapse the clicked fold point completely

fold-collapse-all-current ()

Collapse the current fold point completely Key Bindings: Wing IDE: Alt-Page_Up; Brief: Alt-Page_Up; VI/VIM: Alt-Page_Up; Eclipse: Alt-Page_Up; Emacs: Alt-Page_Up; Visual Studio: Alt-Page_Up; OS X: Command--

fold-collapse-current ()

Collapse the current fold point Key Bindings: VI/VIM: z c; Eclipse: Ctrl--

fold-collapse-more-clicked ()

Collapse the clicked fold point one more level

fold-collapse-more-current ()

Collapse the current fold point one more level Key Bindings: Wing IDE: Alt-Up; Brief: Alt-Up; VI/VIM: Alt-Up; Eclipse: Alt-Up; Emacs: Alt-Up; Visual Studio: Alt-Up; OS X: Command-_

fold-expand-all ()

Expand all fold points in the current file Key Bindings: Wing IDE: Alt-End; Brief: Alt-End; VI/VIM: Alt-End; Eclipse: Alt-End; Emacs: Alt-End; Visual Studio: Alt-End; OS X: Command-Ctrl-*

fold-expand-all-clicked ()

Expand the clicked fold point completely

fold-expand-all-current ()

Expand the current fold point completely Key Bindings: Wing IDE: Alt-Page_Down; Brief: Alt-Page_Down; VI/VIM: Alt-Page_Down; Eclipse: Alt-Page_Down; Emacs: Alt-Page_Down; Visual Studio: Alt-Page_Down; OS X: Command-*

fold-expand-current ()

Expand the current fold point Key Bindings: VI/VIM: z o; Eclipse: Ctrl-+

fold-expand-more-clicked ()

Expand the clicked fold point one more level

fold-expand-more-current ()

Expand the current fold point one more level Key Bindings: Wing IDE: Alt-Down; Brief: Alt-Down; VI/VIM: Alt-Down; Eclipse: Alt-Down; Emacs: Alt-Down; Visual Studio: Alt-Down; OS X: Command-+

fold-toggle ()

Toggle the current fold point Key Bindings: Wing IDE: Alt-/; Brief: Alt-/; VI/VIM: Alt-/; Eclipse: Alt-/; Emacs: Alt-/; Visual Studio: Alt-/; OS X: Command-/

fold-toggle-clicked ()

Toggle the clicked fold point

force-indent-style-to-match-file ()

Force the indent style of the editor to match the indent style found in the majority of the file

force-indent-style-to-mixed ()

Force the indent style of the editor to mixed use of tabs and spaces, regardless of the file contents

force-indent-style-to-spaces-only ()

Force the indent style of the editor to use spaces only, regardless of file contents

force-indent-style-to-tabs-only ()

Force the indent style of the editor to use tabs only, regardless of file contents

goto-column (column=<numeric modifier; default=0>)

Move cursor to given column Key Bindings: VI/VIM: |

goto-line (lineno=<numeric modifier>)

Position cursor at start of given line number Key Bindings: Wing IDE: Ctrl-L; Brief: Alt-G; Eclipse: Ctrl-L; Emacs: Alt-G; Visual Studio: Ctrl-G; OS X: Command-L

goto-line-select (lineno=<numeric modifier>)

Scroll to and select the given line number

goto-nth-line (lineno=<numeric modifier; default=1>, cursor='start')

Position cursor at start of given line number (1=first, -1 = last). This differs from goto-line in that it never prompts for a line number but instead uses the previously entered numeric modifier or defaults to going to line one. The cursor can be positioned at 'start', 'end', or 'fnb' for first non-blank character. Key Bindings: VI/VIM: g g invokes goto-nth-line(cursor="fnb")

goto-nth-line-default-end (lineno=<numeric modifier; default=0>, cursor='start')

Same as goto_nth_line but defaults to end of file if no lineno is given Key Bindings: VI/VIM: Shift-G invokes goto-nth-line-default-end(cursor="fnb")

goto-percent-line (percent=<numeric modifier; default=0>, cursor='start')

Position cursor at start of line at given percent in file. This uses the previously entered numeric modifier or defaults to going to line one. The cursor can be positioned at 'start', 'end', or 'fnb' for first non-blank character, or in VI mode it will do brace matching operation to reflect how VI overrides this command. Key Bindings: VI/VIM: % invokes goto-percent-line(cursor="fnb")

hide-all-whitespace ()

Turn off all special marks for displaying white space and end-of-line

hide-eol ()

Turn off special marks for displaying end-of-line chars

hide-indent-guides ()

Turn off special marks for displaying indent level

hide-whitespace ()

Turn off special marks for displaying white space

indent-lines (lines=None, levels=<numeric modifier; default=1>)

Indent selected number of lines from cursor position. Set lines to None to indent all the lines in current selection. Set levels to indent more than one level at a time. Key Bindings: VI/VIM: >; Eclipse: Ctrl-| invokes indent-lines(lines=1)

indent-next-move (num=<numeric modifier; default=1>)

Indent lines spanned by next cursor move Key Bindings: VI/VIM: >

indent-region (sel=None)

Indent the selected region one level of indentation. Set sel to None to use preference to determine selection behavior, or "never-select" to unselect after indent, "always-select" to always select after indent, or "retain-select" to retain current selection after indent. Key Bindings: Wing IDE: Ctrl->; VI/VIM: Ctrl-T; Eclipse: Ctrl->; Emacs: Ctrl-C >; Visual Studio: Ctrl->; OS X: Command-]

indent-to-match-next-move (num=<numeric modifier; default=1>)

Indent lines spanned by next cursor move to match, based on the preceding line Key Bindings: VI/VIM: =

insert-command (cmd)

Insert the output for the given command at current cursor position. Some special characters in the command line (if not escaped with ) will be replaced as follows:

% -- Current file's full path name
# -- Previous file's full path name

insert-file (filename)

Insert a file at current cursor position, prompting user for file selection Key Bindings: Brief: Alt-R; Emacs: Ctrl-X I

join-lines (delim=' ', num=<numeric modifier; default=2>)

Join together specified number of lines after current line (replace newlines with the given delimiter (single space by default) Key Bindings: VI/VIM: Shift-J

join-selection (delim=' ')

Join together all lines in given selection (replace newlines with the given delimiter (single space by default) Key Bindings: VI/VIM: Shift-J

kill-buffer ()

Close the current text file Key Bindings: Brief: Ctrl--; Emacs: Ctrl-X K

outdent-lines (lines=None, levels=<numeric modifier; default=1>)

Outdent selected number of lines from cursor position. Set lines to None to indent all the lines in current selection. Set levels to outdent more than one level at a time. Key Bindings: VI/VIM: <

outdent-next-move (num=<numeric modifier; default=1>)

Outdent lines spanned by next cursor move Key Bindings: VI/VIM: <

outdent-region (sel=None)

Outdent the selected region one level of indentation. Set sel to None to use preference to determine selection behavior, or "never-select" to unselect after indent, "always-select" to always select after indent, or "retain-select" to retain current selection after indent. Key Bindings: Wing IDE: Ctrl-<; VI/VIM: Ctrl-D; Eclipse: Ctrl-<; Emacs: Ctrl-C <; Visual Studio: Ctrl-<; OS X: Command-[

page-setup ()

Show printing page setup dialog

print-view ()

Print active editor document Key Bindings: Wing IDE: Ctrl-P; Eclipse: Ctrl-P; Visual Studio: Ctrl-P; OS X: Command-P

query-replace (search_string, replace_string)

Initiate incremental mini-search query/replace from the cursor position. Key Bindings: Wing IDE: Alt-comma; Eclipse: Alt-comma; Emacs: Alt-%; Visual Studio: Alt-comma; OS X: Ctrl-R

query-replace-regex (search_string, replace_string)

Initiate incremental mini-search query/replace from the cursor position. The search string is treated as a regular expression. Key Bindings: Wing IDE: Ctrl-Alt-Comma; Eclipse: Ctrl-Alt-Comma; Emacs: Ctrl-Alt-%; Visual Studio: Ctrl-Alt-Comma

range-replace (search_string, replace_string, confirm, range_limit, match_limit, regex)

Initiate incremental mini-search query/replace within the given selection. This is similar to query_replace but allows some additional options:

confirm -- True to confirm each replace
range_limit -- None to replace between current selection start and end of document,
  1 to limit operation to current selection or to current line if selection is empty,
  (start, end) to limit operation to within given selection range, or "first|last"
  to limit operating withing given range of lines (1=first).
match_limit -- None to replace any number of matches, or limit of number of replaces.
  When set to "l" plus a number, limits to that number of matches per line,
  rather than as a whole.
regex -- Treat search string as a regular expression

repeat-replace (repeat=<numeric modifier; default=1>)

Repeat the last query replace or range replace operation on the current line. The first match is replaced without confirmation. Key Bindings: VI/VIM: &

replace-char (line_mode='multiline', num=<numeric modifier; default=1>)

Replace num characters with given character. Set line_mode to multiline to allow replacing across lines, extend to replace on current line and then extend the line length, and restrict to replace only if enough characters exist on current line after cursor position. Key Bindings: VI/VIM: r invokes replace-char(line_mode="restrict")

replace-string (search_string, replace_string)

Replace all occurrences of a string from the cursor position to end of file. Key Bindings: Wing IDE: Alt-.; Eclipse: Alt-.; Emacs: Alt-@; Visual Studio: Alt-.

replace-string-regex (search_string, replace_string)

Replace all occurrences of a string from the cursor position to end of file. The search string is treated as a regular expression. Key Bindings: Wing IDE: Ctrl-Alt-.; Eclipse: Ctrl-Alt-.; Emacs: Ctrl-Alt-@; Visual Studio: Ctrl-Alt-.

save-buffer ()

Save the current text file to disk

set-readonly ()

Set editor to be readonly. This cannot be done if the editor contains any unsaved edits.

set-visit-history-anchor ()

Set anchor in the visit history to go back to

set-writable ()

Set editor to be writable. This can be used to override the read-only state used initially for editors displaying files that are read-only on disk.

show-all-whitespace ()

Turn on all special marks for displaying white space and end-of-line

show-eol ()

Turn on special marks for displaying end-of-line chars

show-indent-guides ()

Turn on special marks for displaying indent level

show-indent-manager ()

Display the indentation manager for this editor file

show-whitespace ()

Turn on special marks for displaying white space

start-kbd-macro (register='a')

Start definition of a keyboard macro. If register=None then the user is prompted to enter a letter a-z under which to file the macro. Otherwise, register 'a' is used by default. Key Bindings: Wing IDE: Ctrl-(; Brief: F7; VI/VIM: q invokes start-kbd-macro(register=None); Eclipse: Ctrl-(; Emacs: Ctrl-X (; Visual Studio: Ctrl-(; OS X: Command-(

stop-kbd-macro ()

Stop definition of a keyboard macro Key Bindings: Wing IDE: Ctrl-); Brief: Shift-F7; VI/VIM: q; Eclipse: Ctrl-); Emacs: Ctrl-X ); Visual Studio: Ctrl-); OS X: Command-)

toggle-auto-editing ()

Toggle the global auto-editing switch. When enabled, the editor performs the auto-edits that have been selected in the Editor > Auto-Editing preferences group.

toggle-line-wrapping ()

Toggles line wrapping preference for all editors

toggle-overtype ()

Toggle status of overtyping mode Key Bindings: Wing IDE: Insert; Brief: Insert; VI/VIM: Insert; Eclipse: Insert; Emacs: Insert; Visual Studio: Insert

uncomment-out-region (one_level=True)

Uncomment out the selected region if commented out. If one_level is True then each call removes only one level of commenting. Key Bindings: Wing IDE: Ctrl-?; Eclipse: Ctrl-?; Emacs: Ctrl-C U; Visual Studio: Ctrl-K Ctrl-U; OS X: Command-"

uncomment-out-toggle (style=None)

Remove commenting from the selected lines, if any. This command is not available if the lines are not commented out.

use-lexer-ada ()

Force syntax highlighting Ada source

use-lexer-apache-conf ()

Force syntax highlighting for Apache configuration file format

use-lexer-asm ()

Force syntax highlighting for Masm assembly language

use-lexer-ave ()

Force syntax highlighting for Avenue GIS language

use-lexer-baan ()

Force syntax highlighting for Baan

use-lexer-bash ()

Force syntax highlighting for bash scripts

use-lexer-bullant ()

Force syntax highlighting for Bullant

use-lexer-by-doctype ()

Use syntax highlighting appropriate to the file type

use-lexer-coffee-script ()

Force syntax highlighting for Coffee Script source file

use-lexer-cpp ()

Force syntax highlighting for C/C++ source Key Bindings: Wing IDE: Ctrl-7 C; Eclipse: Ctrl-7 C; Emacs: Ctrl-X L C; Visual Studio: Ctrl-7 C; OS X: Command-7 C

use-lexer-css2 ()

Force syntax highlighting for CSS2

use-lexer-cython ()

Force syntax highlighting for Cython source

use-lexer-diff ()

Force syntax highlighting for diff/cdiff files

use-lexer-django ()

Force syntax highlighting for Django template file

use-lexer-dos-batch ()

Force syntax highlighting for DOS batch files

use-lexer-eiffel ()

Force syntax highlighting for Eiffel source

use-lexer-errlist ()

Force syntax highlighting for error list format

use-lexer-escript ()

Force syntax highlighting for EScript

use-lexer-fortran ()

Force syntax highlighting for Fortran

use-lexer-html ()

Force syntax highlighting for HTML Key Bindings: Wing IDE: Ctrl-7 H; Eclipse: Ctrl-7 H; Emacs: Ctrl-X L H; Visual Studio: Ctrl-7 H; OS X: Command-7 H

use-lexer-idl ()

Force syntax highlighting for XP IDL

use-lexer-java ()

Force syntax highlighting for Java source

use-lexer-javascript ()

Force syntax highlighting for Javascript

use-lexer-latex ()

Force syntax highlighting for LaTeX

use-lexer-lisp ()

Force syntax highlighting for Lisp source

use-lexer-lout ()

Force syntax highlighting for LOUT typesetting language

use-lexer-lua ()

Force syntax highlighting for Lua

use-lexer-makefile ()

Force syntax highlighting for make files Key Bindings: Wing IDE: Ctrl-7 M; Eclipse: Ctrl-7 M; Emacs: Ctrl-X L M; Visual Studio: Ctrl-7 M; OS X: Command-7 M

use-lexer-mako ()

Force syntax highlighting for Mako template file

use-lexer-matlab ()

Force syntax highlighting for Matlab

use-lexer-mmixal ()

Force syntax highlighting for MMIX assembly language

use-lexer-msidl ()

Force syntax highlighting for MS IDL

use-lexer-nncrontab ()

Force syntax highlighting for NNCrontab files

use-lexer-none ()

Use no syntax highlighting Key Bindings: Wing IDE: Ctrl-7 N; Eclipse: Ctrl-7 N; Emacs: Ctrl-X L N; Visual Studio: Ctrl-7 N; OS X: Command-7 N

use-lexer-nsis ()

Force syntax highlighting for NSIS

use-lexer-pascal ()

Force syntax highlighting for Pascal source

use-lexer-perl ()

Force syntax highlighting for Perl source

use-lexer-php ()

Force syntax highlighting for PHP source

use-lexer-plsql ()

Force syntax highlighting for PL/SQL files

use-lexer-pov ()

Force syntax highlighting for POV ray tracer scene description language

use-lexer-properties ()

Force syntax highlighting for properties files

use-lexer-ps ()

Force syntax highlighting for Postscript

use-lexer-python ()

Force syntax highlighting for Python source Key Bindings: Wing IDE: Ctrl-7 P; Eclipse: Ctrl-7 P; Emacs: Ctrl-X L P; Visual Studio: Ctrl-7 P; OS X: Command-7 P

use-lexer-qss ()

Force syntax highlighting for QSS (Qt Style sheets)

use-lexer-r ()

Force syntax highlighting for R source file

use-lexer-rc ()

Force syntax highlighting for RC file format

use-lexer-ruby ()

Force syntax highlighting for Ruby source

use-lexer-scriptol ()

Force syntax highlighting for Scriptol

use-lexer-scss ()

Force syntax highlighting for SCSS formatted SASS

use-lexer-sql ()

Force syntax highlighting for SQL Key Bindings: Wing IDE: Ctrl-7 S; Eclipse: Ctrl-7 S; Emacs: Ctrl-X L S; Visual Studio: Ctrl-7 S; OS X: Command-7 S

use-lexer-tcl ()

Force syntax highlighting for TCL

use-lexer-vb ()

Force syntax highlighting for Visual Basic

use-lexer-vxml ()

Force syntax highlighting for VXML

use-lexer-xcode ()

Force syntax highlighting for XCode files

use-lexer-xml ()

Force syntax highlighting for XML files Key Bindings: Wing IDE: Ctrl-7 X; Eclipse: Ctrl-7 X; Visual Studio: Ctrl-7 X; OS X: Command-7 X

use-lexer-yaml ()

Force syntax highlighting for YAML

zoom-in ()

Zoom in, increasing the text display size temporarily by one font size Key Binding: Ctrl-+

zoom-out ()

Zoom out, increasing the text display size temporarily by one font size Key Binding: Ctrl--

zoom-reset ()

Reset font zoom factor back to zero

Shell Or Editor Commands

Commands available when working either in the shell or editor

goto-clicked-symbol-defn (other_split=False)

Goto the definition of the source symbol that was last clicked on, optionally showing the definition in another split if one is available and other_split is True. Key Bindings: Wing IDE: Ctrl-Left_Click; Brief: Ctrl-Left_Click; VI/VIM: Ctrl-Left_Click; Eclipse: Ctrl-Left_Click; Emacs: Ctrl-Left_Click; Visual Studio: Ctrl-Left_Click; OS X: Command-Left_Click

goto-selected-symbol-defn (other_split=False)

Goto the definition of the selected source symbol, optionally showing the definition in another split if one is available and other_split is True. Key Binding: F4

« 20.1. Project Manager CommandsTable of Contents20.3. Search Manager Commands »

Editor Commands