Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Another useful tip for navigation - when using the fuzzy search, you can start typing a filename to jump to that file, then with that still in the search box, hit # and start typing a keyword to jump to in that file.

So if you wanted to find something with the class btn_order in index.aspx, in Windows you'd hit CTRL-P and type "index#btn", hit enter, and there you are. You can of course scroll up/down through the available files matching the filter before you hit # -- the keyword search applies to the currently selected file.



An even better one IMO is @, same thing as with # but it uses symbols.


Or : to jump to a line number. Beautiful.


CTRL+G in Windows.


(this is when in the Ctrl+P fuzzy-file-search box, so the colon : in that context also jumps to the line number in the found file)


You can get that via Ctrl-R (or Cmd, if on a Mac).

Ctrl-; brings up fuzzy matching for words in the file.


Cmd-R is just for jumping to symbols in the current file, Cmd-T+@ to jump to a symbol on any given file.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: