MAXScript Introduction > The MAXScript Editor > MAXScript Editor Menu Options >

# MAXScript Editor - Edit Menu

| MAXScript Editor - Quick Navigation

The Edit menu of the Tabbed MAXScript Editor introduced in 3ds Max 2008 contains commands for undoing/redoing changes, copying, deleting and selecting text, as well as tools for bracket-matching, auto-completing words, commenting and case-changing.

- Undo (CTRL+Z)- undoes the last change to the current Window. Each Editor Window has its own independent Undo buffer. Default number of Undo operations is 500.

- Redo (CTRL+Y)-takes back the latest undo operations.

- Cut (CTRL+X) -cuts the currently selected text, removing it from the Editor and placing it into the Windows Clipboard.

- Copy (CTRL+C) -copies the currently selected text, leaving it in the Editor and placing a copy into the Windows Clipboard.

- Copy as RTF-copies the currently selected text to the Windows Clipboard using Rich Text Formatting to preserve syntax coloring and fonts.

- Paste (CTRL+V) -inserts the content of the Windows Clipboard at the current cursor position.

- Select All (CTRL+A)- selects all text in the current Editor Window.

- Duplicate (CTRL+SHIFT+D) -duplicates the current selection, placing the copy directly after the source.

- Delete (Del) -deletes the currently selected text.

- Delete All (CTRL+Alt+D) -deletes all text from the current Editor Window.

- Match Brace (CTRL+B)-jumps to the corresponding second parenthesis, bracket or brace.

- Select to Brace (CTRL+SHIFT+B)- selects the text from the current opening or closing parenthesis, bracket or brace to the second one in the pair.

- Complete Word (CTRL+ENTER)-provides auto-completion hints by popping up a window with possible words.

  - This feature uses the currently edited file as the source of suggestions, in other words once you have used a keyword in your code, you can use auto-complete to type it faster a second time. It does not use the internal list of MAXScript keywords.

  - The word should be partially written.For example, typing in "format" and "for" and then entering "fo" would provide both "for" and "format" as suggestions, while entering "for" will suggest only "format" because "for" is already completed.Similartly, having just "for" in the document and typing in "for" a second time will provide no suggestion because "for" IS the complete word. Having only "format" but not "for" in the document and asking for suggestions after typing in "for" will provide "format" as possible complete word.

- Expand Abbreviation (CTRL+SHIFT+A)- expands a pre-defined abbreviation. Abbreviations can be defined in the file MXS_Editor_Abbrev.properties which is quickly accessible via the Tools > Open Abbreviations File Editor Menu option. See MAXScript Editor - Defining And Using Abbreviations for details.

- Insert Abbreviation (CTL+SHIFT+R)-inserts a pre-defined abbreviation using a dialog listing all abbreviations in a list box which also allows the typing of an abbreviation.

- Block Comment or Uncomment (CTRL+Q)-adds AND removes -- comment characters in front of all selected lines.

- Box Comment (CTRL+SHIFT+C)-adds /* */ comment characters in the beginning and end of the currently selected text and * in front of every line.Other than Block Comments, it cannot be removed using the same command, the operation can either be undone or the comment characters have to be deleted manually. It can be used to create comment boxes, for example for script headers, like

      /* * THIS IS AN EXAMPLE OF BOX COMMENT * And this is the end * Version 2008 */

- Stream Comment (CTRL+SHIFT+Q)-adds /* */ comment characters in the beginning and end of the currently selected text. Other than Block Comments, it cannot be removed using the same command, the operation can either be undone or the comment characters have to be deleted manually.

- Make Selection Uppercase (CTRL+SHIFT+U)-capitalizes the currently selected text, for example "This is a MAXScript example" will be changed to "THIS IS A MAXSCRIPT EXAMPLE".

- Make Selection Lowercase (CTRL+U)-changes the currently selected text to lower case, for example "This is a MAXScript example" will be changed to "this is a maxscript example"

Previous Topic

MAXScript Editor - File Menu

Next Topic

MAXScript Editor - Search Menu