mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2026-04-04 09:09:22 +02:00
Author:admin
Date:2008-09-17T13:53:28.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@3 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
[[Property:title|Class name auto complete]]
|
||||
[[Property:weight|3]]
|
||||
EiffelStudio editor offers the possibility to complete class names automatically. This means that when the user types " ''a_variable: AN_INCOMPLETE_CLASS_NAME''" and then triggers the auto-complete, the editor will propose a list of possible valid class names. <br/>
|
||||
To be more precise, a window will pop up and display the list of classes that match ''AN_INCOMPLETE_CLASS_NAME''. The user can accept the suggested name, choose another name (in the list or not), or simply cancel the auto-complete.
|
||||
|
||||
[[Image:editor-class-auto-completion-window]]
|
||||
|
||||
To trigger the auto complete, press the key combination "Ctrl+Shift+Space" or click on '''Complete class name''' in the '''Advanced''' sub-menu of the [[Edit menu commands|menu]] . If automatic completion is possible, there are two cases : if only one name matches, this name will be inserted in the editor. If there are no matching names or several ones a window will appear. This window will contain a text field and a list. The text field will be filled with the beginning of the class name that was entered. The first item in the list, if any, will be selected. <br/>
|
||||
To complete your code with the selected item, press "Enter" or "Ctrl+Space". <br/>
|
||||
To choose another item, use keyboard Up and Down arrows or the mouse. You can also modify the content of the text field. The list will be updated automatically. To validate your choice, press "Enter" or "Ctrl+Space". If there is no selected item, the content of the text field will be inserted. <br/>
|
||||
To cancel the auto-complete, press "Esc" at any time.
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
[[Property:title|Feature call auto complete]]
|
||||
[[Property:weight|2]]
|
||||
EiffelStudio editor now offers the possibility to complete feature calls automatically. This means that when the user types " ''an_identifier.an_incomplete_feature_name''" and then triggers the auto-complete, the editor will propose a list of possible feature names correct in this situation. <br/>
|
||||
To be more precise, a window will pop up and display the list of features that can be called on ''an_identifier'' and that match ''an_incomplete_feature_name''. The user can accept the suggested name, choose another name (in the list or not), or simply cancel the auto-complete.
|
||||
|
||||
[[Image:editor-auto-completion-window]]
|
||||
|
||||
To trigger the auto complete, press the key combination "Ctrl+Space" or click on '''Complete word''' in the '''Advanced''' sub-menu of the [[Edit menu commands|menu]] . If automatic completion is possible, there are two cases : if only one name matches, this name will be inserted in the editor. If there are no matching names or several ones a window will appear. This window will contain a text field and a list. The text field will be filled with the beginning of the feature name that was entered. The first item in the list, if any, will be selected. <br/>
|
||||
To complete your code with the selected item, press "Enter" or "Ctrl+Space". <br/>
|
||||
To choose another item, use keyboard Up and Down arrows or the mouse. You can also modify the content of the text field. The list will be updated automatically. To validate your choice, press "Enter" or "Ctrl+Space". If there is no selected item, the content of the text field will be inserted. <br/>
|
||||
To cancel the auto-complete, press "Esc" at any time.
|
||||
|
||||
{{tip| '''Tips''': }}
|
||||
* If the selected feature is a query, you can call the auto-complete again right after the previous completion. There is no need to type a dot.
|
||||
* You can call the auto-complete without an identifier. The auto-complete window will then show the features of the current class.
|
||||
* The keyboard shortcut for automatic completion can be changed in the [[Keyboard shortcuts preferences|editor preferences]] .
|
||||
* Typing a non-alphanumeric character in the completion window automatically closes it. You can therefore type '.', ' ' or '(' to close the completion window and start typing the next token straight away.
|
||||
|
||||
{{note| '''Notes''': }}
|
||||
* Only identifiers that were already defined when the class was compiled for the last time can be completed, except for local entity names that can always be completed.
|
||||
* Only compiled features will appear in the auto-complete window.
|
||||
* By default, features from class ANY will be ignored by the auto-complete window. This can be changed in the [[General Editor Preferences|editor preferences]] .
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
[[Property:title|Automatic completion]]
|
||||
[[Property:weight|6]]
|
||||
* [[Automatic completion: Introduction|Introduction]]
|
||||
* [[Syntax auto complete|Syntax auto-complete]]
|
||||
* [[Feature call auto complete|Feature call auto-complete]]
|
||||
* [[Class name auto complete|Class name auto-complete]]
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
[[Property:title|Syntax auto complete]]
|
||||
[[Property:weight|1]]
|
||||
Syntax auto-complete in EiffelStudio editor is twofold :
|
||||
*
|
||||
The editor can close brackets ("(", "{" and "[") and quotes(""", "'" and "`") automatically. This feature is disabled by default. It can be activated in the editor preferences.
|
||||
|
||||
*
|
||||
The editor can complete syntactic structures or part of them. The auto-complete is triggered when "Enter" or "Space" keys are pressed after a reserved word included in the following list:
|
||||
{|
|
||||
|-
|
||||
| class
|
||||
| ensure
|
||||
| invariant
|
||||
| require else
|
||||
|-
|
||||
| check
|
||||
| ensure then
|
||||
| is
|
||||
| rescue
|
||||
|-
|
||||
| create
|
||||
| export
|
||||
| local
|
||||
| select
|
||||
|-
|
||||
| creation
|
||||
| external
|
||||
| loop
|
||||
| then
|
||||
|-
|
||||
| debug
|
||||
| feature
|
||||
| obsolete
|
||||
| undefine
|
||||
|-
|
||||
| deferred
|
||||
| from
|
||||
| once
|
||||
| until
|
||||
|-
|
||||
| do
|
||||
| if
|
||||
| precursor
|
||||
| variant
|
||||
|-
|
||||
| else
|
||||
| indexing
|
||||
| redefine
|
||||
| when
|
||||
|-
|
||||
| elseif
|
||||
| inherit
|
||||
| rename
|
||||
|-
|
||||
| end
|
||||
| inspect
|
||||
| require
|
||||
|}
|
||||
|
||||
The way these reserved words are completed is fully [[Syntax automatic completion preferences|customizable]] .
|
||||
|
||||
|
||||
{{seealso| '''See Also''' <br/>
|
||||
To see how the editor completes by default and how it can be changed, please read the following pages: [[Syntax automatic completion preferences|Syntax auto-complete preferences]] <br/>
|
||||
}}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
[[Property:title|Clipboard functionality]]
|
||||
[[Property:weight|3]]
|
||||
EiffelStudio editor provides common clipboard functionality, i.e. Cut, Copy and Paste commands.
|
||||
*
|
||||
To copy text to the clipboard, [[Selection|select]] it in the editor first. Then, you may either press the key combination "Ctrl+C" (or "Shift+Ins"), click on the copy icon [[Image:16x16--general-copy-icon]] or choose '''Copy''' in the '''Edit''' menu.
|
||||
|
||||
*
|
||||
To cut text, i.e. copy it to the clipboard and delete it, [[Selection|select]] it and then either press "Ctrl+X" (or "Shift+Del"), click on the cut icon [[Image:general-cut-icon]] or choose '''Cut''' in the '''Edit''' menu.
|
||||
|
||||
*
|
||||
To paste text from the clipboard, either press "Ctrl+V" (or"Ctrl+Ins"), click on the paste icon [[Image:general-paste-icon]] or choose '''Paste''' in the '''Edit''' menu.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
[[Property:title|Cursor moves]]
|
||||
[[Property:weight|1]]
|
||||
There are two ways to position the cursor in EiffelStudio editor: you can use either the mouse or the keyboard.
|
||||
|
||||
If you choose to use the mouse, just click in the text where you want the cursor to be moved. If the text is not entirely visible, you can use the scroll bar at the bottom and on the left of the edition zone to display the part you are interested in.
|
||||
|
||||
The keys that you may use to move the cursor in EiffelStudio editor are "Home", "End", "Page up", "Page Down" and the four arrows. Pressing "Home" will make the cursor go to the beginning of the line. Pressing "End" will move the cursor to the end of the line. You can use "Page Up" to move the cursor one page closer to the beginning of the text. Pressing "Page down" will position the cursor one page further. <br/>
|
||||
Left and Right arrows can be used to move respectively to the character on the left or on the right of current position. Up and Down arrows allow you to move the cursor to the previous and next lines.
|
||||
|
||||
{{tip| '''Tip''': By maintaining "Ctrl" pressed as you use Left and Right arrows, you will move the cursor to the next or previous word instead of the next or previous character. }}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
[[Property:title|Edit menu commands]]
|
||||
[[Property:weight|8]]
|
||||
In the '''Edit''' menu, the following commands are available:
|
||||
* [[History functionality|Undo]] : undo last change.
|
||||
* [[History functionality|Redo]] : redo last undone change.
|
||||
* [[Clipboard functionality|Cut]] : Cut [[Selection|selected]] text.
|
||||
* [[Clipboard functionality|Copy]] : Copy [[Selection|selected]] text.
|
||||
* [[Clipboard functionality|Paste]] : Paste text from the clipboard.
|
||||
* [[Selection|Select All]] : Select the entire text.
|
||||
* [[Search tool|Find]] : Show and go to the [[Search tool|search panel]] .
|
||||
* [[Search tool|Replace]] : Show and go to the [[Search tool|search panel]] with replace option activated.
|
||||
* Toggle Line Numbers: Show or hide the line numbers in the current editor.
|
||||
* [[Search functionality|Search]] :
|
||||
** [[Search functionality|Find next]] : Find the next occurrence of the last searched expression.
|
||||
** [[Search functionality|Find previous]] : Find the previous occurrence of the last searched expression.
|
||||
** [[Search functionality|Find selection]] : Find the next occurrence of the selected text.
|
||||
|
||||
* Advanced
|
||||
** [[Indent and un indent selection|Indent selection]]
|
||||
** [[Indent and un indent selection|Unindent selection]]
|
||||
** [[Comment and uncomment lines|Comment]]
|
||||
** [[Comment and uncomment lines|Uncomment]]
|
||||
** [[Embed lines in 'if then...end' or in 'debug...end'|Embed in if...]]
|
||||
** [[Embed lines in 'if then...end' or in 'debug...end'|Embed in debug...]]
|
||||
** [[Feature call auto complete|Complete word]]
|
||||
** [[Class name auto complete|Complete class name]]
|
||||
|
||||
* [[Preference window overview|Preferences]]
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
[[Property:title|Editor customization]]
|
||||
[[Property:weight|9]]
|
||||
Many of the editor features, the [[Automatic completion: Introduction|automatic completion]] in particular, can be customized in the preferences. <br/>
|
||||
Please refer to the [[Editor Preferences|editor section]] of the preferences help for more details.
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
[[Property:title|History functionality]]
|
||||
[[Property:weight|4]]
|
||||
EiffelStudio editor provides an history functionality, i.e. Undo and Redo commands.
|
||||
*
|
||||
To undo last change, press the key combination "Ctrl+Z", click on the undo icon [[Image:general-undo-icon]] or choose '''Undo''' in the '''Edit''' menu. If you repeat this operation, the editor will undo the last change and so on until there are no more changes to undo.
|
||||
|
||||
*
|
||||
To redo last undone change, press the key combination "Ctrl+Y", click on the redo icon [[Image:general-redo-icon]] or choose '''Redo''' in the '''Edit''' menu. If you repeat this operation, the editor will redo the last undone change and so on until there are no undone changes left.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
[[Property:title|EiffelStudio Editor]]
|
||||
[[Property:link_title|Editor]]
|
||||
[[Property:weight|-12]]
|
||||
* [[EiffelStudio Editor Introduction|Introduction]]
|
||||
* [[Cursor moves|Cursor moves]]
|
||||
* [[Selection|Selection]]
|
||||
* [[Clipboard functionality|Clipboard functionality]]
|
||||
* [[History functionality|History functionality]]
|
||||
* [[Search functionality|Search functionality]]
|
||||
* [[Automatic completion|Automatic completion]]
|
||||
* [[Operations on text blocks|Operations on text blocks]]
|
||||
* [[Edit menu commands|Commands in the edit menu]]
|
||||
* [[Editor customization|Customization]]
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
[[Property:title|Comment and uncomment lines]]
|
||||
[[Property:weight|1]]
|
||||
EiffelStudio editor offers the possibility to comment or uncomment several lines at a time.
|
||||
*
|
||||
The "Comment" command corresponds to the '''Comment''' entry in the '''Advanced''' sub-menu of the [[Edit menu commands| '''Edit''' Menu ]] . It may be called by using the keyboard shortcut "Ctrl+K". Its action is to insert two dashes in front of each [[Selection|selected]] line.
|
||||
|
||||
*
|
||||
The "Uncomment" command corresponds to the '''Uncomment''' entry in the '''Advanced''' submenu of the [[Edit menu commands| '''Edit''' Menu ]] . It may be called by using the keyboard shortcut "Ctrl+Shift+K". Its action is to remove the two dashes in front of each [[Selection|selected]] line if there are such characters. <br/>
|
||||
|
||||
|
||||
|
||||
{{note| '''Note''': If there is no selection, these commands will be applied to the current line. }}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
[[Property:title|Embed lines in 'if then...end' or in 'debug...end']]
|
||||
[[Property:weight|3]]
|
||||
=Embed lines in "if then...end" or in "debug...end"=
|
||||
|
||||
EiffelStudio editor offers the possibility to embed several lines in "if then...end" or in "debug...end" structures.
|
||||
* The first command corresponds to the '''Embed in if''' entry in the '''Advanced''' submenu of the [[Edit menu commands]] [[Edit menu commands| Menu]] . It may be called by using the keyboard shortcut "Ctrl+I" too. Its action is to insert a line with "if then" before the [[Selection|selected]] lines and a line with "end" after those lines. The lines will be indented and the cursor positioned between "if" and "then".
|
||||
* The second command corresponds to the '''Embed in debug''' entry in the '''Advanced''' submenu of the [[Edit menu commands]] [[Edit menu commands| Menu]] . It may be called by using the keyboard shortcut "Ctrl+D" too. Its action is to insert a line with "debug" before the [[Selection|selected]] lines and a line with "end" after those lines. The lines will be indented and the cursor positioned after "debug" and "then".
|
||||
|
||||
{{note| '''Note''': If there is no selection, these commands will be applied to the current line. }}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
[[Property:title|Indent and un indent selection]]
|
||||
[[Property:link_title|Indent and unindent selection]]
|
||||
[[Property:weight|2]]
|
||||
EiffelStudio editor offers the possibility to indent or unindent selected lines.
|
||||
*
|
||||
The "Indent" command corresponds to the '''Indent selection''' entry in the '''Advanced''' sub menu of the [[Edit menu commands| '''Edit''' Menu ]] . It may be called by using the keyboard shortcut "Tab". Its action is to insert a tabulation in front of each [[Selection|selected]] line.
|
||||
|
||||
*
|
||||
The "Unindent" command corresponds to the '''Unindent selection''' entry in the '''Advanced''' sub menu of the [[Edit menu commands| '''Edit''' Menu ]] . It may be called by using the keyboard shortcut "Shift+Tab". Its action is to remove the tabulation in front of each [[Selection|selected]] line if there is such a character. <br/>
|
||||
|
||||
|
||||
|
||||
{{note| '''Note''': If there is no selection, you may still use the unindent shortcut "Shift+Tab". The command will be applied to the current line. <br/>
|
||||
}}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
[[Property:title|Operations on text blocks]]
|
||||
[[Property:weight|7]]
|
||||
* [[Editing text block: Introduction|Introduction]]
|
||||
* [[Comment and uncomment lines|Comment and uncomment lines]]
|
||||
* [[Indent and un indent selection|Indent and unindent selection]]
|
||||
* [[Embed lines in 'if then...end' or in 'debug...end'|Embed lines in "if then...end" or in "debug...end"]]
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
[[Property:title|Search functionality]]
|
||||
[[Property:weight|5]]
|
||||
EiffelStudio editor provides a search functionality. To search an expression in the edited text, you can either use the [[Search tool|Search tool]] or use a set of keyboard accelerators available directly from the editor. From the editor, you can:
|
||||
*
|
||||
Search the next occurrence of the last searched pattern. <br/>
|
||||
To do so, press "F3". You can change this key binding in [[Keyboard shortcuts preferences|the preferences]] .
|
||||
|
||||
*
|
||||
Search the previous occurrence of the last searched pattern. <br/>
|
||||
To do so, press "Shift+F3". You can change this key binding in [[Keyboard shortcuts preferences|the preferences]] .
|
||||
|
||||
*
|
||||
Search the next occurrence of the current selected pattern. <br/>
|
||||
To do so, press "Ctrl+F3". You can change this key binding in [[Keyboard shortcuts preferences|the preferences]] .
|
||||
|
||||
*
|
||||
Search the previous occurrence of the current selected pattern. <br/>
|
||||
To do so, press "Ctrl+Shift+F3". You can change this key binding in [[Keyboard shortcuts preferences|the preferences]] .
|
||||
|
||||
|
||||
{{seealso| '''See Also''' <br/>
|
||||
[[Search tool|Search tool]] }}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
[[Property:title|Selection]]
|
||||
[[Property:weight|2]]
|
||||
In EiffelStudio editor, you can select text by using either the mouse or the keyboard.
|
||||
|
||||
To select a text zone with the keyboard, [[Cursor moves|move the cursor]] to one end of the zone. Then press "Shift" and maintain the key pressed until you moved the cursor to the other end of the zone. The selected zone will appear in reverse video. If you want to select the entire text, press "Ctrl" and "A".
|
||||
|
||||
{{tip| '''Tip''': You can combine "Ctrl" and "Shift" when using Left and Right arrows to select text word by word }}
|
||||
|
||||
If you choose to use the mouse, first [[Cursor moves|position the cursor]] to one end of the text zone you want to select, and click there without releasing the mouse button. Then move the mouse pointer to the other end of the zone and release the button. The selected text is shown in reverse video. If the other end of the zone is not visible, move the mouse pointer out of the edition area as you select text in the direction where the end is. EiffelStudio Editor will start scrolling automatically and will stop as soon as the mouse pointer enters the edition area again.
|
||||
|
||||
There are other ways of using the mouse to select text in EiffelStudio editor:
|
||||
* You can select a word by double-clicking on it. If you do not release the mouse button after the second click, then you will be able to select a text zone but the bound of the zone will move one word at a time.
|
||||
* If you triple click in the edition area, then the pointed line will be selected. If you do not release the mouse button after the third click, you will be able to select text line by line.
|
||||
* A quadruple click will select the entire text (this is an option that you can [[Editor Preferences|modify]] in the preferences dialog).
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user