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 - Go to declaration: place the cursor on the key term
Summary: Go to declaration: place the cursor on the key term
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-17 19:55 UTC by dalleyg
Modified: 2008-12-18 09:27 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.