Trigger key for Code Hints

Started by Stefan, July 25, 2009, 09:16:29 PM

Previous topic - Next topic

Stefan

Quote
Code Hints
Code hints will help in runtime during typing,
suggest you best guesses examine words statistics, dictionaries and templates.

By pressing Tab or Enter, when Code Hint is shown, you can insert it into your code, not typing rest of chars.

Hi Alex, i have an question:

Can we have this trigger keys customized in keyboard settings?
(Edit.AutoComplete (a.k.a. Code Completion) i have found but not "Edit.ExpandCodeHints")

F.ex. i want TAB only as trigger.
Or someone is used to use Ctrl+J ?
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

alex

Hello Stefan,

I do not place the accelerators for Code Hint and Auto Completion (to agree on suggestion and insert text) they have some other usage then the rest and they can be only executed after some condition (open completion list box or shown code hint tooltip). So conflict resolution for overlapped files would not work here correctly. If somebody else would require this, I would start thinking :)

But till now there is a way to just remove Enter from agree keys with XML settings. Add this to settings.xml:

<XMLConfigSettings>
<Code_Completion>
<CodeHintAgreeByReturn>false</CodeHintAgreeByReturn>
</Code_Completion>
</XMLConfigSettings>


Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Stefan

Many thanks Alex, this works and is all i need here.
Because often the code hint comes right in the way if i want to
insert an CRLF but insert expanded code template instead by pressing enter.
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

alex

Yes. I know this problem :) Because of this I have added delay in 1.43 for displaying code hint, but see this does not help too much :)
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]