Reputation: 8801
I am new and I hate files with more than 1000 lines of code because I have to scroll alot.
So my question is when I am working on a line and I have to look up to a name of some property, how do I find that property name fast and how do I jump back to the line I was actually editing without scrolling alot?
What options do I have?
Upvotes: 0
Views: 107
Reputation: 10320
Within Visual Studio, the following short-cuts exist (by default).
Ctrl + , - Allows you to search for a method or class name.
Ctrl + G - Allows you to 'jump' to a line number, if you can remember it.
Upvotes: 0
Reputation: 11
You can use Ctrl + F for searching the specific property and use Navigate Backward: Shift+Alt+3; Navigate Forward: Shift+Alt+4 to get back to the editing line.
Hope this may help you.
Upvotes: 0
Reputation: 73502
In visual studio code editor, there will be a combobox which displays all the members of current class(which is located in top right corner of editor). Select the property you are interested. It will navigate you to the property definition.
To get back to the place where you were Press ctrl + - (Navigate backward command).
Upvotes: 0
Reputation: 125
Iam currently working in big files. And i tend to use ctrl + kk alot. Which is bookmark. u can use Ctrl k + P and Ctrl k + b to get to previous and next bookmark. I also use find find all refrences alot. Right click some code and press find all refrences.
Hope it helps! =)
Upvotes: 0