There are a number of other editor features that are worth knowing about:
Goto-Line
Navigate quickly to a numbered source line with the Goto Line item in the Edit menu, or with the key binding displayed there. In some keyboard personalities, the line number is typed into the data entry area that appears at the bottom of the window. Press Enter to complete the action.
Selecting Code
Wing supports character, line, and block mode selection from the Selection Mode item in the Edit menu.
In Python code, the Select sub-menu in the Edit menu can be used to easily select and traverse logical blocks of code. The Select More and Select Less operations are particularly useful when preparing to type over or copy/paste ranges of text. Try these out now on urllib in ReadPythonNews in example1.py. Each repeated press of Ctrl-Down will select more code in logical units. Press Ctrl-Up to select less code.
The other operations in the Select sub-menu can be used for selecting and moving forward or backward over whole statements, blocks, or scopes. If you plan to use these and your selected User Interface > Keyboard > Keyboard Personality preference does not support them, then you will want to define key bindings for them using the User Interface > Keyboard > Custom Key Bindings preference. The command names are select-x, next-x, and previous-x where x is either statement, block, or scope.
Block Commenting
Lines of code can be commented out or un-commented quickly from the Source menu . In Python code, the Block Commenting Style preference controls the type of commenting that is used. The default is to use indented single # characters since this works better with some of Wing's other features.
Brace Matching
Wing highlights brace matching as you type unless disabled from the Auto Brace Match preference. The Match Braces item in the Source menu causes Wing to select all the code that is contained in the nearest matching braces found from the current insertion point on the editor. Repeated invocations of the command will traverse outward or forward in the file.
Text Reformatting
Code can be re-wrapped to the configured Reformatting Wrap Column with the Justify Rewrap item in the Source menu. This will limit wrapping to a single logical line of code, so it can be used to reformat an argument list or long list or tuple without altering surrounding code.