Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Copilot and Visual Assist fighting over Tab
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ajargrey
New Member

India
3 Posts

Posted - May 04 2024 :  08:43:07 AM  Show Profile  Reply with Quote
Tab in Visual Assist is used for accepting suggestion; Tab is also used in Copilot to accept Suggestion;

How do I change this hotkey for either Visual Assist OR copilot?
Scavenged the internet, couldn't find anything

feline
Whole Tomato Software

United Kingdom
19147 Posts

Posted - May 06 2024 :  08:26:57 AM  Show Profile  Reply with Quote
Which programming language are you working in?

Are you talking about something that happens with the GitHub Copilot Chat extension installed and active, or something built into Visual Studio?

zen is the art of being at one with the two'ness
Go to Top of Page

FAN
Senior Member

33 Posts

Posted - May 06 2024 :  09:03:22 AM  Show Profile  Reply with Quote

I think what he means is that the tab key is used by both the IntelliCode autocomplition and the GitHub Copilot extension. (So it is not directly related to Visual Assist.) Anyway, the solution from this Github forum might help:
Tools > Options > IntelliCode > Advanced > Accept code suggestion on right arrow

https://github.com/orgs/community/discussions/65015#discussioncomment-8212576

Go to Top of Page

ajargrey
New Member

India
3 Posts

Posted - May 06 2024 :  09:12:06 AM  Show Profile  Reply with Quote
using c++ with unreal engine
Using Github Copilot Completions Extension (External VS extension, not in-built)

as you can see in this image: https://imgur.com/a/bgEZXbJ

Visual Assist says "VA Snippet, Accept with <TAB> or <ENTER>"
and Copilot says, "Tab to Accept"

so, both are kind of competing for tab command,
couldn't figure out how to change tab command for either copilot or VA

p.s: image: https://imgur.com/a/bgEZXbJ
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19147 Posts

Posted - May 06 2024 :  09:19:18 AM  Show Profile  Reply with Quote
Since I don't have a Github Copilot account, I cannot simply test this directly here, but has anyone tried setting:

VA Options -> Enhanced Listboxes -> Commit selection with - Tab = OFF
VA Options -> Enhanced Listboxes -> Commit selection with - Enter = ON

also does the setting FAN posted help?

zen is the art of being at one with the two'ness
Go to Top of Page

ajargrey
New Member

India
3 Posts

Posted - May 06 2024 :  12:34:13 PM  Show Profile  Reply with Quote
Hey @feline,
This works perfectly. Thanks a lot!
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19147 Posts

Posted - May 21 2024 :  11:49:26 AM  Show Profile  Reply with Quote
Excellent news, thank you for the update, good to know this helps.

zen is the art of being at one with the two'ness
Go to Top of Page

mkoe
Junior Member

15 Posts

Posted - Feb 27 2025 :  03:10:05 AM  Show Profile  Reply with Quote
Hey, I have the same issue and non of the settings fix this.

As you can see in the following image, VA accepts via TAB and overrides the autocompletion:



BUT my settings are (TAB is disabled):



We use the latest VA and VS versions.



Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19147 Posts

Posted - Feb 27 2025 :  07:12:07 AM  Show Profile  Reply with Quote
We are working on getting CoPilot and VA listboxes to work better together:

case=165219

For now, some people have reported success with the settings:

Tools > Options > IntelliCode > Advanced > Accept code suggestion on right arrow

VA Options -> Enhanced Listboxes -> Commit selection with - Tab = OFF
VA Options -> Enhanced Listboxes -> Commit selection with - Enter = ON

But I am not sure why you are being prompted to accept a VA listbox with Tab when you have the Tab setting turned Off.

Are you working in C++ or C#? I do recall one user reporting problems with CoPilot and C#.

zen is the art of being at one with the two'ness
Go to Top of Page

mkoe
Junior Member

15 Posts

Posted - Feb 27 2025 :  10:25:49 AM  Show Profile  Reply with Quote
Tools > Options > IntelliCode > Advanced > Accept code suggestion on right arrow
This is no option for us. We want TAB to accept the suggestion

Are you working in C++ or C#?
Both. But the issue in the screenshots is from C#
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19147 Posts

Posted - Feb 27 2025 :  3:10:03 PM  Show Profile  Reply with Quote
Both VA and IDE settings can come into play here. As a first step, can you please try turning Off

VA Options -> Suggestions -> Suggestion and Completion lists - Enable in C#

does this help at all? We have had one user report making this change, and that it helped them when dealing with CoPilot in C#, so I am wondering if the same change will work for you and help you as well.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000