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 252325 - Incredible productivity-boosting idea - have netbeans remember location in file
Summary: Incredible productivity-boosting idea - have netbeans remember location in file
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: PC Windows 8
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-10 02:04 UTC by turbob
Modified: 2015-06-01 08:59 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 turbob 2015-05-10 02:04:35 UTC
Hello,

When files start getting longer, it can be difficult to navigate to the right spot.  I'm working on a file with 2k lines of code right now, and keeping track of where everything is can be difficult.  If most of my work is in one particular area, but I need to check a different line of code somewhere else, then it would be nice if I could create a quick "bookmark" of my location in the file - say line 1500.  Then  I could go find the other code I needed to look at and my last location would be saved.  Then after I found the code I needed to change (let's say at line 500), I could just hit a keyboard shortcut and I would be taken right back to line 1500 where I was working.

To bookmark a line, we could do something like clicking the line number to set a breakpoint.

To make the feature even better, it should have a queue of these file location bookmarks.  That way you can "bookmark" multiple locations in a file.  Hit the keyboard shortcut a few times, and it takes you back through the queue, kind of like alt-tab-tab-tab on Windows.
Comment 1 Jiri Prox 2015-06-01 08:59:35 UTC
The bookmarks are already implemented in Netbeans, you can even assign them shortcut or name for faster navigation.

The next feature which may help you is Go to last edit which brings you to the last place where you have edited the code (can by called several times in a row to visit previous edits). 

You can even use Back - Forward action in editor which behaves same as Back/Forwards in the browser