I’m working in an Editor Extension for editing text and script files inside Unity.
It will be initially available in two editions, a free edition for viewing the files with syntax highlighting, and a paid version that allows you to open the file in a new window for editing.
This component is being reviewed in the Unity Asset Store for publication this week hopefully.
SmartStudio for Unity 3.5
Version 1.3 (Beta), October 2012
Copyright © 2012, Marcelo Roca
SmartStudio are a number of tools to view and edit text files, scripts, XML and SQL without having to leave Unity, using the characteristics of the most common market IDE, such as syntax highlighting, code folding.
Features Standard Edition:
- Cost: 10$
- View files in Inspector
- Line numbering
- Syntax highlighting
- Basic Navigation, selection, copy to clipboard
- Open file in dedicate editor window (inside Unity)
- Search box
- Unity script help F1 (new)
- Code Folding (new)
- Theme Editor (new)
- Automatic backups (new)
- Todo list editor (new)
- Unlimited Undo/Redo (in development)
Free Edition:
- Cost: Free
- All the Standard Edition features but Save button disabled
I decided to remove the pro version. My intention is to have a good enough editor to edit a few simple things in Unity, without having to open a heavy editor like Visual Studio or Mono Develop, keeping the cost as low as possible to make it attractive for most people. For day to day is best to use an advanced editor like Visual Studio.[/I]
Some of the features that were planned for the Pro version have already been incorporated in the Standard Edition. The other will not be implemented.
Known Issues:
- Undo/Redo are not implemented
- Syntax highlighting for multiline comments and strings are not updated in realtime.
- All these issues will be solved the in the next weeks
Known limitations:
- Some key combinations can’t be implemented: Ctrl+Z (undo), Ctrl+S (save)
- Key AltGr can’t be used
- Unity 4 is not supported now, but will be supported in the near future
Beta Testing
This is an officially released version of a SmartStudio which includes most of the product’s functionality.
Please note that a beta version is NOT the final version of the product and therefore the developer does not guarantee an absence of errors that may disrupt the computer’s operation and/or result in data loss.
Consequently, beta testers use the beta version at their own risk and the developer bears no responsibility for any consequences arising out of the use of the beta version.
Shorcut Keys: (http://www.dofactory.com/ShortCutKeys/ShortCutKeys.aspx)
GENERAL:
- Ctrl-X Cuts all selected lines or the current line if nothing has been selected to the clipboard
- Ctrl-C Copies the currently selected item to the clipboard
- Ctrl-V Pastes the item in the clipboard at the cursor
- Alt-Backspace Undo previous editing action (1)(2)
- Ctrl-YRedo the previous undo action (1)
- Esc Closes a menu or dialog, cancels an operation in progress, clear selection, or places focus in the current document window
- Alt-S Saves the selected files in the current project (usually the file that is being edited) (3)
TEXT NAVIGATION:
- Left Arrow Moves the cursor one character to the left
- Right Arrow Moves the cursor one character to the right
- Down Arrow Moves the cursor down one line
- Up Arrow Moves the cursor up one line
- Page Down Scrolls down one screen in the editor window
- Page Up Scrolls up one screen in the editor window
- End Moves the cursor to the end of the current line
- Home Moves the cursor to the beginning of the line. If you press Home when the cursor is already at the start of the line, it will toggle the cursor between the first non-whitespace character and the real start of the line(1)
- Ctrl-End Moves the cursor to the end of the document
- Ctrl-Home Moves the cursor to the start of the document
- Ctrl-G Displays the Go to Line dialog. (1)
- Ctrl-] Moves the cursor to the matching brace in the document. If the cursor is on an opening brace, this will move to the corresponding closing brace and vice versa (1)
- Ctrl-Down Arrow Scrolls text down one line but does not move the cursor. This is useful for scrolling more text into view without losing your place. Available only in text editors
- Ctrl-Up Arrow Scrolls text up one line but does not move the cursor.
- Ctrl-Right Arrow Moves the cursor one word to the right (1)
- Ctrl-Left Arrow Moves the cursor one word to the left (1)
TEXT MANIPULATION
- Enter Inserts a new line
- Delete Deletes one character to the right of the cursor
- Insert Toggles between insert and overtype insertion modes (1)
- Tab Indents the currently selected line or lines by onetab stop. If there is no selection, this inserts a tab stop (1)
- Shift-Tab Moves current line or selected lines one tab stop to the left (1)
- Backspace Deletes one character to the left of the cursor
- Ctrl-K+Ctrl-C Marks the current line or selected lines of code as a comment (1)
- Ctrl-K+Ctrl-U Removes the comment syntax from the current line or currently selected lines of code (1)
- Ctrl-T or Shift-Enter Swaps the characters on either side of the cursor. (For example, AC|BD becomes AB|CD.) (1)
- Ctrl-Enter Inserts a blank line above the cursor (1)
- Ctrl-Shift-Enter Inserts a blank line below the cursor (1)
- Ctrl-R, Ctrl-W Shows or hides spaces and tab marks (1)
- Ctrl-Delete Deletes the word to the right of the cursor (1)
- Ctrl-Backspace Deletes the word to the left of the cursor (1)
TEXT SELECTION
- Shift-Left Arrow Moves the cursor to the left one character, extending the selection
- Shift-Alt-Left Arrow Moves the cursor to the left one character, extending the column selection (1)
- Shift-Right Arrow Moves the cursor to the right one character, extending the selection
- Shift-Alt-Right Arrow Moves the cursor to the right one character, extending the column selection(1)
- Ctrl-Shift-End Moves the cursor to the end of the document, extending the selection
- Ctrl-Shift-Home Moves the cursor to the start of the document, extending the selection
- Ctrl-Shift-] Moves the cursor to the next brace, extending the selection (1)
- Shift-Down Arrow Moves the cursor down one line, extending the selection (1)
- Shift-Alt-Down Arrow Moves the cursor down one line, extending the column selection (1)
- Shift-End[/B Moves the cursor to the end of the current line, extending the selection
- Shift-Alt-End Moves the cursor to the end of the line, extending the column selection (1)
- Shift-Home Moves the cursor to the start of the line, extending the selection
- Shift-Alt-Home Moves the cursor to the start of the line, extending the column selection (1)
- Shift-Up Arrow Moves the cursor up one line, extending the selection
- Shift-Alt-Up Arrow Moves the cursor up one line, extending the column selection (1)
- Shift-Page Down Extends selection down one page
- Shift-Page Up Extends selection up one page
- Ctrl-A Selects everything in the current document
- Ctrl-W Selects the word containing the cursor or the word to the right of the cursor (1)
- Ctrl-Shift-Page Down Moves the cursor to the last line in view, extending the selection
- Ctrl-Shift-Page Up Moves the cursor to the top of the current window, extending the selection
- Ctrl-Shift-Alt-Right Arrow Moves the cursor to the right one word, extending the column selection
- Ctrl-Shift-Left Arrow Moves the cursor one word to the left, extending the selection (1)
- Ctrl-Shift-Alt-Left Arrow Moves the cursor to the left one word, extending the column selection (1)
- *SEARCH AND REPLACE**
- Ctrl-F Displays the Find dialog (1)
- F3 Finds the next occurrence of the previous search text (1)
- Ctrl-F3 Finds the next occurrence of the currently selected text or the word under the cursor if there is no selection (1)
- Shift-F3 Finds the previous occurrence of the search text (1)
- Ctrl-Shift-F3 Finds the previous occurrence of the currently selected text or the word under the cursor (1)
- *HELP**
- F1 Help will try to display a topic relevant to the text under the cursor
(1) These features will be gradually implemented in the future sub-versions.
(2) Ctrl-Z can not be used for Undo. Will be used only the alternative Alt-Backspace
(3) Ctrl-S and Ctrl-Shift-S can not be used for Save. Will be used Alt-S