Trace codes easily with recording lines in files of each track in Visual Studio Code!
ext install navigation-helper
Developers offen trace codes back and forth with many files opened in the editor.
But it's hard to remember all those files belong to which track you're tracing
.
Especially, you're tracing multiple tracks and those files are in the same project folder.
For exmaple, for tracing Bug 111
, you may open several files like File 1
, File 3
... etc and do the study.
Then, suddenly you get a ticket about Bug 112
with high priority, then you open File 3
,File 2
and File 22
to trace the root cause.
Also, you might have Feature 11
and Feature 12
in the sprint backlog...
The following image illustrates the related files of each track (Bug 111
,Bug 112
,Feature 11
and Feature 12
)
- It's tedious to record the related files manully on paper.
- It's time-consuming to navigate to those files, if you write down it on paper.
This extension helps you organize the file list into track-based
in the editor.
We called Bug 111
as a Track
, and called File 1
, File 3
... etc as a History
.
- Record related files (History) into
track-based
file lists. - Add/Delete related files (History) into/from a track with ease.
- Use
Quick Pick Selecter
to show related files of a track, and easy to navigate to them - Use
Quick Pick Selecter
to show tracks, and easy to switch between them
Press cmd+m
(ctrl+m
), You can see the Save to [ Track 0 ]
message on status bar.
also if you've selected the words before press the cmd+m
(ctrl+m
). it will be record too.
The following image illustrates what the demo did.
Press cmd+h
(ctrl+h
), and select the file you like, then navigate to it.
The status bar shows current Track [ Track 0 ]
Press cmd+shift+,
(ctrl+shift+,
), and input the track name you like
The following image illustrates what the demo did.
Press cmd+shift+m
(ctrl+shift+m
), and select the track you like, then switch to it
The status bar shows current Track is changed to[ Track 3 ]
The following image illustrates what the demo did.
When you press cmd+h
(ctrl+h
) There would be an empty list in [ Track 3 ]
now.
Press f1
and input Navigation Helper: Clear One History From Current Track
, and select the history you would like to delete.
The following image illustrates what the demo did.
Press f1
and input Navigation Helper: Clear All History From Current Track
The following image illustrates what the demo did.
Press f1
and input Navigation Helper: Clear All History From All Tracks
The following image illustrates what the demo did.
You can also set custom shortcuts in keybindings.json
via Code => Preferences => Keyboard Shortcuts
For example:
[
{ "key": "cmd+m",//set to your favorite shortcut
"command": "extension.saveToTrack",
"when": "editorTextFocus" }
]
[
{ "key": "cmd+h",//set to your favorite shortcut
"command": "extension.showCurrentTrackHistory",
"when": "editorTextFocus" }
]
[
{ "key": "cmd+shift+,",//set to your favorite shortcut
"command": "extension.editCurrentTrackName",
"when": "editorTextFocus" }
]
[
{ "key": "cmd+shift+m",//set to your favorite shortcut
"command": "extension.changeTrack",
"when": "editorTextFocus" }
]
[
{ "key": "set to your favorite shortcut",//set to your favorite shortcut
"command": "extension.clearOneHistoryFromCurrentTrack",
"when": "editorTextFocus" }
]
[
{ "key": "set to your favorite shortcut",//set to your favorite shortcut
"command": "extension.clearAllHistoryFromCurrentTrack",
"when": "editorTextFocus" }
]
[
{ "key": "set to your favorite shortcut",//set to your favorite shortcut
"command": "extension.clearAllHistoryFromAllTracks",
"when": "editorTextFocus" }
]
Please submit issues to navigation-helper
Enjoy!