From 13938ea50d10bf97e8ff71696dff01c24246744e Mon Sep 17 00:00:00 2001 From: halw Date: Tue, 4 Aug 2009 12:50:22 +0000 Subject: [PATCH] Author:halw Date:2009-08-04T12:03:34.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@273 abb3cda0-5349-4a8f-a601-0c33ac3a8c38 --- .../feature-call-auto-complete.wiki | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/documentation/current/eiffelstudio/eiffelstudio-reference/eiffelstudio-editor/automatic-completion/feature-call-auto-complete.wiki b/documentation/current/eiffelstudio/eiffelstudio-reference/eiffelstudio-editor/automatic-completion/feature-call-auto-complete.wiki index d374f965..616162c4 100644 --- a/documentation/current/eiffelstudio/eiffelstudio-reference/eiffelstudio-editor/automatic-completion/feature-call-auto-complete.wiki +++ b/documentation/current/eiffelstudio/eiffelstudio-reference/eiffelstudio-editor/automatic-completion/feature-call-auto-complete.wiki @@ -1,17 +1,26 @@ [[Property:title|Feature call auto complete]] [[Property:weight|2]] [[Property:uuid|40ae30a6-c033-dae7-8dae-2569e7ba0adc]] +==Overview== + EiffelStudio editor will complete feature calls automatically. -This means that when the user types: +This means, for example, 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.
-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. + an_string.a +and then triggers feature call auto-completion, one of two things will happen: +# If there is only one available feature name that begins with "a", then a template for a call to that feature will be inserted into the code. +# If more than one such feature name exists, the editor will propose a list of possible valid feature names from which to choose, as seen in Figure 1. +Feature call auto-completion can be triggered by pressing crtl+space or by following the edit menu path: + + +Edit --> Advanced --> Complete word + [[Image:editor feature auto-completion window]] +Figure 1. The feature 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.
To complete your code with the selected item, press "Enter" or "Ctrl+Space".