Edit

Edit Menu

The table below describes items on the Edit menu.

Edit Menu Item

Description

Command

Undo

Undoes the last edit operation.

undo

Redo

Undoes an undo operation.

redo

Multi-file Undo

Undoes the last multi-file operation (i.e.: Find and Replace in all files).

mfundo

Multi-file Redo

Undoes an multi-file undo operation.

mfredo

Cut

Deletes the selected text and copies it to the clipboard.

cut

Copy

Copies the selected text to the clipboard.

copy_to_clipboard

Paste

Inserts the clipboard into the current file.

paste

List Clipboards

Displays the Clipboards view, which allows you to view and insert the selected clipboard. See Clipboards and also Edit Dialogs and Views.

list_clipboards

Copy Word

Copies the current word to the clipboard.

copy_word

Append to Clipboard

Appends the selected text to the clipboard.

append_to_clipboard

Append Cut

Deletes the selected text and appends it to the clipboard.

append_cut

Insert Literal

Displays the Insert Literal dialog, which allows you to insert a specified character code. See Inserting Literal Characters.

insert_literal

Select

Displays menu for selecting and deselecting text. See Edit Select Menu.

N/A

Delete

Displays menu for deleting text. See Edit Delete Menu.

N/A

Complete Previous Word

Retrieves previous word or variable matching word prefix at cursor.

complete_prev

Complete Next Word

Retrieves next word or variable matching word prefix at cursor.

complete_next

Fill

Displays the Fill Selection dialog, which lets you fill the selected text with a character you choose.

gui_fill_selection

Indent

Indents the selected text based on the tabs or indent for each level.

indent_selection

Unindent

Unindents the selected text based on the tabs or indent for each level.

unindent_selection

Other

Displays menu containing more edit-related commands. See Edit Other Menu.

N/A

Edit Select Menu

The Edit → Select menu contains selection operations. See Selections for more information.

Edit Select Menu Item

Description

Command

Char

Starts or ends a character/stream selection.

select_char

Block

Starts or ends a block/column selection.

select_block

Line

Starts or ends a line selection.

select_line

Word

Selects the word under cursor.

select_whole_word

Code Block

Selects text in current code block (if/loop/switch block etc.).

select_code_block

Procedure

Selects text in current function including function heading.

select_proc

Deselect

Unhighlights selected text.

deselect

All

Selects all text in current buffer.

select_all

Edit Delete Menu

The Edit → Delete menu contains text deletion operations. See Cutting and Deleting Text for more information.

Edit Delete Menu Item

Description

Command

Word

Deletes text from the cursor to the end of the current word and copies it to the clipboard.

cut_word

Line

Deletes the current line and copies it to the clipboard.

cut_line

To End of Line

Deletes text from the cursor to the end of the line and copies it to the clipboard.

cut_end_line

Selection

Deletes the selected text.

delete_selection

All

Delete all text in current buffer.

delete_all

Edit Other Menu

The Edit → Othermenu contains miscellaneous editing operations.

Edit Other Menu Item

Description

Command

Lowcase

Translates the characters in the selected text to lowercase.

lowcase_selection

Upcase

Translates the characters in the selected text to uppercase.

upcase_selection

Capitalize

Capitalizes the first character of the current word.

cap_selection

Shift Left

Deletes the first column of text in each line of the selected text.

shift_selection_left

Shift Right

Inserts a space at the first column of each line of the selected text.

shift_selection_right

Overlay Block

Overwrites selected block/column of text at the cursor.

overlay_block_selection

Adjust Block

Overlays the selected text at the cursor and fills the original selected text with spaces.

adjust_block_selection

Enumerate

Displays the Enumerate dialog, which allows you to add incrementing numbers to a selection. See Enumerate Dialog.

gui_enumerate

Filter Selection

Displays a Command dialog, which allows you to filter selected text through an external command. See Filter Selection: Command Dialog.

filter_selection

Copy UCN As Unicode

Copies selected UCN to the clipboard as Unicode. See Using Unicode.

copy_ucn_as_unicode

Copy Unicode As

Displays menu containing commands for copying Unicode as UCN. See Copy Unicode As Menu.

N/A

Tabs to Spaces

Converts tabs to appropriate number of spaces. If there is no selection the entire buffer is converted.

convert_tabs2spaces

Spaces to Tabs

Converts leading spaces to tabs. If there is no selection the entire buffer is converted.

convert_spaces2tabs

Remove Trailing Whitespace

Removes trailing whitespace characters from the ends of lines.

remove_trailing_spaces

Block Insert Mode

Allows you to insert/delete text for an entire block/column selection.

block_insert_mode

Copy Unicode As Menu

The Edit → Other → Copy Unicode As menu contains operations for copying Unicode characters. See Using Unicode for more information.

Copy Unicode As Menu Item

Description

Command

C++ (UTF-16 \xHHHH)

Copies Unicode characters in selection as C++ UTF-16 \xHHHH notation.

copy_unicode_as_c

Regex (UTF-32 \x{HHHH})

Copies Unicode characters in selection as Regex UTF-32 \x{HHHH} notation.

copy_unicode_as_regex

Java/C# (UTF-16 \uHHHH)

Copies Unicode characters in selection as Java/C# UTF-16 \uHHHH notation.

copy_unicode_as_java

UCN (UTF-32 \uHHHH and \UHHHHHHHH)

Copies Unicode characters in selection as UCN UTF-32 \uHHHH and

\UHHHHHHHH notation.

copy_unicode_as_ucn

SGML/XML hexadecimal (UTF-32 &xHHHH;)

Copies Unicode characters in selection as SGML/XML hexadecimal

UTF-32 &xHHHH; notation.

copy_unicode_as_xml

SGML/XML decimal (UTF-32 &xDDDD;)

Copies Unicode characters in selection as SGML/XML decimal

UTF-32 &xDDDD; notation.

copy_unicode_as_xmldec

Edit Dialogs and Views

This section describes the dialogs and views that are associated with text editing.

Select Text to Paste Dialog

This is a modal dialog available for viewing and inserting recently used SlickEdit® clipboards (not the same as the operating system clipboard). To display the dialog, you can use either the old_list_clipboards command or the list_clipboards_modal command. These commands are identical. If there are no clipboards, the message line states No clipboards. See Clipboards for more information.

Tip

You can also use the Clipboards view to view and insert clipboards (Edit → List Clipboards or list_clipboards command). It provides the same information as the Select Text to Paste dialog, except it includes a Preview area to view color-coded clipboard contents and provides some additional functionality. See Clipboards for more information.

The dialog shows a list of clipboards. To insert a clipboard at the current cursor location, double-click on the clipboard to insert, or, select the clipboard to insert and press Enter or click OK.

To see the entire contents of a condensed clipboard, click the View button. The View Clipboard dialog opens showing the color-coded contents in an edit window. From here, you can copy all or part of the contents to the operating system clipboard.

The dialog shows the following information:

  • Clipboard name/number - This is the number of the clipboard or the name, if using Named Clipboards. Clipboards are numbered with the most recent clipboard first, which always appears at the top of the list. You can use this value with the paste command to insert the specified clipboard. For example, type paste 2 on the command line to insert clipboard 2 at the cursor location.

  • Clipboard type - The clipboard type can be CHAR, LINE, or BLOCK. A CHAR type clipboard is inserted before the current character. A LINE type clipboard is inserted after the current line by default. If you want LINE type clipboards inserted before the current line, change the line insert style (Window → SlickEdit Preferences → Editing → General). A BLOCK type clipboard is inserted before the current character and pushes over all text intersecting with the block. No lines are inserted.

  • Line count - The number following the clipboard type indicates the number of complete or partial lines of text in the clipboard.

  • Clipboard contents/summary - This area shows all or a portion of the clipboard contents. If the contents exceed the viewing area, they are condensed.

Enumerate Dialog

This dialog contains options for adding incrementing numbers to a selection. It is displayed when you click Edit → Other → Enumerate or use the gui_enumerate command. Alternatively, you can add incrementing numbers to a selection using the enumerate command with options on the command line. See the Help system for command syntax.

  • Start - C syntax expression which evaluates to the number used for first line of selection. However, when the Hexadecimal flags output style is selected, the start must be an integer bit position or the first hexadecimal number with which to start.

  • Increment - C syntax expression which evaluates to the amount to increment for each line in the selection. However, when the Hexadecimal flags output style is selected, this specifies the number of bit positions by which to increment.

  • Pad to number of digits - Specifies the digit width for each number. Number is padded to at least this number of digits by adding leading zeros.

  • Output - Both the Hexadecimal and Hexadecimal flags options specify hexadecimal syntax output based on the buffers extension. We determine the hexadecimal syntax based on the color coding which supports 0xhhhh (C syntax), &Hdddd (Basic), hhhhH (Intel assembler), and $hhhh (Motorola assembler). If the buffer's extension has no color coding, the hex numbers are prefixed with 0x.

Filter Selection: Command Dialog

The Command dialog is used to specify a command to run against the selected text. It is displayed when you click Edit → Other → Filter Selection or use the filter_selection command.

Enter the command in the Command text box. The selected text will be used as input to the command, and the output from the command will replace the selected text. Use the drop-down arrow to the right of the Command text box to select from a history of previously entered commands.