Check Out the Latest News About SmartBear Connect
Reply
Contributor
Posts: 35
Registered: ‎06-02-2016

Code Completion - Keys other than Enter?

[ Edited ]

Kind of a small thing but figured I'd ask because I can't find anything - when the code completion popup comes up, is there a way to trigger the completion with Tab or Spacebar? It only seems to complete if I press Enter/Return. I could have swore it used to work with Tab (currently, it just inserts an actual tab or space if I press either of those), but maybe that's just in other programs. Either way, is that something I can set somewhere or something?

Highlighted
Posts: 4,010
Topics: 35
Kudos: 1,334
Solutions: 272
Registered: ‎11-30-2009

Re: Code Completion - Keys other than Enter?

I don't think so... I think "Enter" is the only keystroke that it allows to select the completed item.  And, as far as I know, there's not a keyboard mapping that can be altered for this.  I could be wrong in that respect, but I haven't found one yet.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Extensions available
Community Leaders Program
Contributor
Posts: 33
Registered: ‎02-20-2012

Re: Code Completion - Keys other than Enter?

I have noticed the same after mixed upgrades (Windows10 and TestComplete 12.30).

 

After a few verifications, this looks like an issue with TC12.30.

 

Windows 7 with TC 12.20, both [Tab] and [Enter] complete the code (of corse i usually used [Tab] !)

Windows 7 with TC 12.30, only [Enter] completes the code.

Windows 10 with TC 12.30, only [Enter] completes the code.

 

Can SmartBear confirm this is an issue?

Win7/Win10 / Server 2012 - Testing Delphi Application, Dynamic AX, Web, Mobile app

TC 12 and TestExecute
Contributor
Posts: 35
Registered: ‎06-02-2016

Re: Code Completion - Keys other than Enter?

Oh wow, you're right, slecault. My main work system is Win10, and I just recently upgraded to 12.30 (because I wanted the supported Python version bump). One of my test VMs is Win10, too, and still has 12.20 installed on it. Just checked and, sure enough, Tab works to complete there. Glad I wasn't just imagining it.

 

While I was at it, I tested another feature that seems to have been oddly frustrating only recently and, sure enough, same thing - in 12.30 but not in 12.20, typing a parenthesis or quote will automatically generate the complementary paren / quote. This is handy in editors like e.g. Notepad++ where, if you still accidentally type the closing paren yourself out of habit, it just advances the cursor a character silently, but in TestComplete's editor, it adds an extra one, so you then have to delete it. It's also annoying when you intend to keep typing after closing the paren or quote on the same line (which is pretty frequently), since you have to arrow over to get the cursor in the right place anyways. It doesn't really save any keystrokes and adds errors more than prevents them. I wish I could find a way to turn this automatic 'helpful' behavior off, as well, but I don't see anywhere in the options to do so.

Posts: 4,010
Topics: 35
Kudos: 1,334
Solutions: 272
Registered: ‎11-30-2009

Re: Code Completion - Keys other than Enter?

As far as I know, there are no options to turn on or off these new features to the code editors.  Would be worth suggesting it as a feature request either here or directly.

 

In the meantime, typing the paren, quote, brace, etc., is a feature I actually find very useful.  It took me a bit to get used to it because I'm used to typing the closes myself, but now that I've gotten the hang of it, it does actually save me a bit of hassle.  Such is the case with most new things... it takes a bit to get into the swing of it.


As for Tab versus Enter... I've always used "Enter", never "Tab" so, again, it's a matter of getting used to something... although, a change in behavior that is not documented somewhere is not necessarily good.  Again, as mentioned, potentially suggest it as a feature request or even report it as a bug.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Extensions available
Community Leaders Program
Moderator
Posts: 1,387
Registered: ‎07-22-2014

Re: Code Completion - Keys other than Enter?

[ Edited ]

Hi everyone,

 

There is a patch (CC-9785) that should fix the TAB issue in TestComplete 12.3. Please contact support to get the patch.

 

 

Regarding automatic closing of parentheses/quotes, there are feature requests to improve this behavior:

Allow option to shut off bracket and quotation mark automatic insertion of closing pair

Modify auto-formatting of closing bracket and quotation marks

You can upvote them to express interest in this getting implemented.

Helen Kosova
SmartBear Technical Writer
________________________
Vote up helpful replies.
Accept this reply if you think it's the best solution to your question.
Try QAComplete Now