codecadwallader / codemaid

CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
http://www.codemaid.net
GNU Lesser General Public License v3.0
1.9k stars 358 forks source link

Question : Meaning of Digging : Navigation : center on whole item / name only #973

Open PaltryProgrammer opened 1 year ago

PaltryProgrammer commented 1 year ago

May i please inquire meaning of Settings : Digging : Navigation : "center on whole item" and of "name only" i see no difference in behavior i.e. in each case upon navigation cursor lands on name Thank You Kindly

codecadwallader commented 1 year ago

Sure thing. The difference is about how we choose to center the code as we scroll to it in the document window. If we're trying to center on the name only, then the name of the method will be close to the center of the page. If we're trying to center on the whole item, such as a function that is 20 lines long, then the middle of the function (e.g. line 10) would be close to the center of the page. Hope it helps!