Author Topic: How to disable popup showing function parameters?  (Read 1107 times)

rowbearto

  • Senior Community Member
  • Posts: 2344
  • Hero Points: 132
How to disable popup showing function parameters?
« on: April 17, 2023, 03:52:00 PM »
When I am in a language like Python or C++ I type a function name and press "(" it then creates a popup window that shows the various parameters of the function.

Is there a way to turn off this popup from coming up automatically? It gets in the way and I can't see things behind it that I want to see.

It also sometimes freezes the editor, I think because it is looking up the function signature.

I'd like to only bring this up on demand by pressing Alt+, instead of having it come up automatically by typing open (.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 7041
  • Hero Points: 535
Re: How to disable popup showing function parameters?
« Reply #1 on: April 19, 2023, 12:38:21 AM »
Turn off "Auto-display parameter information" (Tools>Options>Languages>[Category]>[Language]>Context Tagging)

rowbearto

  • Senior Community Member
  • Posts: 2344
  • Hero Points: 132
Re: How to disable popup showing function parameters?
« Reply #2 on: May 03, 2023, 08:55:48 PM »
When I upgraded from 27.0.1 to 27.0.2 I think it reverted to the old setting to auto-display parameter info.

How do disable this in SlickC?

Dennis

  • Senior Community Member
  • Posts: 3998
  • Hero Points: 521
Re: How to disable popup showing function parameters?
« Reply #3 on: May 03, 2023, 09:14:39 PM »
Code: [Select]
#include "slick.sh"
#import "optionsxml.e"
#import "se/lang/api/LanguageSettings.e"
using se.lang.api.LanguageSettings;

defmain()
{
   // go through all the languages
   _str alllangs[];
   LanguageSettings.getAllLanguageIds(alllangs);
   foreach (auto lang in alllangs) {
      flags := LanguageSettings.getCodehelpFlags(lang);
      LanguageSettings.setCodehelpFlags(lang, flags & ~VSCODEHELPFLAG_AUTO_FUNCTION_HELP);
   }
}

rowbearto

  • Senior Community Member
  • Posts: 2344
  • Hero Points: 132
Re: How to disable popup showing function parameters?
« Reply #4 on: May 03, 2023, 09:17:37 PM »
Thanks Dennis!