Author Topic: Go to definition  (Read 1175 times)

Devman

  • Junior Community Member
  • Posts: 4
  • Hero Points: 0
Go to definition
« on: July 29, 2013, 08:43:43 pm »

Is there a away when i click go to definition, I would go the declaration of the function and NOT the prototyping?

for example
foo.h
int foo (void);
--------------------
foo.c
extern int foo (void)
{
 printf ("hello");
}
--------------------
I need to go to go directly to foo.c. Currently, sometimes it takes me to foo.h

davehohl

  • Senior Community Member
  • Posts: 271
  • Hero Points: 26
Re: Go to definition
« Reply #1 on: July 29, 2013, 08:55:03 pm »
In the context-tagging option for the language(s) you want (or you can set it for all languages), try setting "prioritize navigation to" to "symbol definition (proc)"

Devman

  • Junior Community Member
  • Posts: 4
  • Hero Points: 0
Re: Go to definition
« Reply #2 on: July 29, 2013, 11:18:52 pm »
How about the preview window? It is still going to the declaration? I need to go to the definition?

davehohl

  • Senior Community Member
  • Posts: 271
  • Hero Points: 26
Re: Go to definition
« Reply #3 on: July 29, 2013, 11:27:04 pm »
My Preview window seems to default to showing the definition. Have you tried exiting and restarting SE since changing the option setting? Sometimes that helps.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2496
  • Hero Points: 362
Re: Go to definition
« Reply #4 on: July 31, 2013, 09:09:28 pm »
You can customize what symbols the Preview window displays by right clicking and turning on and off the symbol filters as you prefer.  In your case, you probably want to turn off "Functions > Prototypes".  This only effects the symbol preview.