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:
jfiat
2008-09-17 13:53:28 +00:00
parent 4fee9356ea
commit 2ee31ab9c7
763 changed files with 36576 additions and 0 deletions

View File

@@ -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.

View File

@@ -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]] .

View File

@@ -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]]

View File

@@ -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/>
}}