31
Maroti
3y

Discovered that its possible to bookmark places in code for easy access.

My whole life has been a lie so far.

Comments
  • 0
  • 1
  • 2
    Simple answer, ctrl+F2(toggle) and F2(move to next).
    Works in subline.
  • 0
    Ctrl + k, k in Visual Studio.
  • 3
    Just add a comment with whatever identifying text you want, and when you come back you can get back to that point with a simple text search.
  • 0
    @Collie
    It is double "ctrl + k"
  • 1
  • 1
    This is a thing too in vim. It even allows global bookmarks so it saves which file it's in and is accessable from anywhere.
  • 0
    @Pavr

    I have yet to encounter a better coding tool than vim.
  • 0
    @AboMahdi Is it not implied that you continue to hold down Ctrl when dealing with keyboard shortcuts?
  • 0
    @Collie
    There are shortcuts like collapsing the code
    That you can perform using
    "ctrl + m", "o" or
    "ctrl + m", "ctrl + o"
    So there is another possibility
    So I had to specify
  • 0
    @AboMahdi fair point
  • 1
    @bahua This is what I do.
    All my special comments start with two hashes, have one or more type marks, and a comment.

    E.g.

    ##! This will break if (other condition) happens.
    ##+ Add (minor feature) here
    ##-? This probably isn't needed any longer.
    ##? Will this still behave correctly if (blah blah)?

    I often use grep to find all instances of these.
Add Comment