The Edit Menu

PyScripter

The Edit Menu
Previous Top Next

graphic
Commands:

Undo
Undo the last change in the Editor

Redo
Reverse the action of the last Undo command

Cut
Cut the selected text.  If no text is selected cut the current line to the clipboard.

Copy
Copy the selected text to the Clipboard.    If no text is selected copy the current line to the clipboard.

Paste
Paste the selected text from the Clipboard

Delete
Delete the selected text

Select All
Select all text in the active editor

Read Only
Enable or disable editing in the active editor. Files opened by PyScripter from the Python directory during debugging are read only by default to prevent accidental changes.

Insert Template
Insert a code template in the active editor



The Source Code submenu

graphic


Commands:

Indent Block
Indent the selected block of code

Dedent Block
Dedent the selected block of code

Comment out
Comment out the selected block of code by inserting "##" at the beginning of each line

Uncomment
Delete "##" at the beginning of each line of the selected block of code

Tabify
Replace spaces with tabs in the selected block of code

Tabify
Replace tabs with spaces in the selected block of code

Execute Selection
Execute the current editor selection in the interpreter (multi-line selection).  If only part of a line is selected, the selection is evaluated and the result is printed in the interpreter window. Finally, if there is no selection, the word at cursor is evaluated.

The Parameters submenu

graphic

Commands:

Insert parameter
Select a parameter from a pop-up list and insert it into the active editor

Insert modifier
Select a parameter modifier from a pop-up list and insert it into a parameter in the active editor

Replace parameters
Replace all parameters with their values.  If a block of text is selected the command is effected in that block, otherwise it is applied to all text in the active editor.


The File Format submenu

graphic

Commands:

Ansi
If checked the active file will be saved in Ansi encoding.  Python files may provide an encoding

UTF-8
If checked the active file will be saved in the UTF-8 encoding including the BOM mark.

UTF-8 (No BOM)
If checked the active file will be saved in the UTF-8 encoding without the BOM mark.

UTF-16LE
If checked the active file will be saved in the UTF-16 LE (little-endian) format.

UTF-16BE
If checked the active file will be saved in the UTF-16 BE (big-endian) format.

DOS/Windows
If checked the active file will be saved using DOS/Windows line breaks (CRLF).

UNIX
If checked the active file will be saved using Unix line breaks (LF).

Mac
If checked the active file will be saved using Mac line breaks (CR).