This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 155699

Summary: Go to declaration: place the cursor on the key term
Product: cnd Reporter: dalleyg <dalleyg>
Component: NavigationAssignee: issues@cnd <issues>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description dalleyg 2008-12-17 19:55:27 UTC
Consider:

class Foo {
public:
  int f();
}

int Foo::f() {
  return 1;
}

Place the cursor on the f of the function declaration.  Using the context menu, choose "Go to declaration".

Expected: cursor jumps to the f in the definition.
Actual: cursor jumps to the beginning of the line containing f in the definition.

It would be nice to have the cursor jump directly to the identifier in question, not to the beginning of the line.  By
making this change, users, can type Ctrl-B to go from the declaration to definition, then Ctrl-B again to go back to the
declaration.  With the current behavior, the user needs to reposition the cursor manually.