<p>In the Delphi IDE, you can hold control and click on a method to jump to its definition. In VS2008, you have to right-click and select "Go To Definition".</p>

<p>I use this function quite often, so I'd really like to get VS to behave like Delphi in this regard - its so much quicker to ctrl+click.</p>

<p>I don't think there's a way to get this working in base VS2008 - am I wrong? Or maybe there's a plugin I could use?</p>

<p><strong>Edit</strong>: Click then F12 does work - but isn't really a good solution for me.. It's still way slower than ctrl+click. 
I might try AutoHotkey, since I'm already running it for something else.</p>

<p><strong>Edit</strong>: <a href="http://www.autohotkey.com" rel="nofollow noreferrer">AutoHotkey</a> worked for me. Here's my script:</p>

<pre><code>SetTitleMatchMode RegEx
#IfWinActive, .* - Microsoft Visual Studio
^LButton::Send {click}{f12}
</code></pre>

[{'answer_id': 80869, 'author': 'RWendi', 'author_id': 15152, 'author_profile': 'https://Stackoverflow.com/users/15152', 'pm_score': -1, 'selected': False, 'text': '<p>Put the mouse cursor on the method name or any identifier, and press <kbd>F12</kbd></p>\n'}, {'answer_id': 80885, 'author': 'Raithlin', 'author_id': 6528, 'author_profile': 'https://Stackoverflow.com/users/6528', 'pm_score': 3, 'selected': False, 'text': "<p>Visual Studio 2008 defaults this to F12, but you can set it in Tools | Options | Environment | Keyboard, and change Edit.GoToDefinition - however, I'm not sure how you can get it to CTRL+mouseclick.</p>\n"}, {'answer_id': 80889, 'author': 'Catalin DICU', 'author_id': 13030, 'author_profile': 'https://Stackoverflow.com/users/13030', 'pm_score': 3, 'selected': False, 'text': '<p><a href="http://www.jetbrains.com/resharper/" rel="nofollow noreferrer">Resharper</a> does that but it\'s not free.\nHighly recommended plugin though, most experienced .NET developers use it.</p>\n'}, {'answer_id': 80935, 'author': 'badp', 'author_id': 13992, 'author_profile': 'https://Stackoverflow.com/users/13992', 'pm_score': 4, 'selected': True, 'text': "<p>You could create an Autohotkey script that does that. When you ctrl-click a word, send a doubleclick then a F12.</p>\n\n<p>I don't have AHK handy so I can't try and sketch some code but it should be pretty easy; the AHK recorder should have enough features to let you create it in a point 'n' click fashion and IIRC it is smart enough to let you limit this behaviour to windows of a certain class only.</p>\n\n<p>When you have your script ready just run the script in the background while you code. It takes just an icon in the Notify bar.</p>\n"}, {'answer_id': 2633651, 'author': 'Tianhao Qiu', 'author_id': 315969, 'author_profile': 'https://Stackoverflow.com/users/315969', 'pm_score': 2, 'selected': False, 'text': '<p>Just a quick note that the following AutoHotkey script works for me in Visual C++ 2010 Express.</p>\n\n<pre><code>SetTitleMatchMode 2\n#IfWinActive, Microsoft Visual C++ 2010 Express\n^LButton::Send {click}{f12}\n</code></pre>\n\n<p>I also changed the shortcuts for View.NavigateForward and View.NavigateBackward to Alt+Right/Left Arrow since I am used to Eclipse.</p>\n'}, {'answer_id': 3051588, 'author': 'splintor', 'author_id': 46635, 'author_profile': 'https://Stackoverflow.com/users/46635', 'pm_score': 3, 'selected': False, 'text': '<p>Not for Visual Studio 2008, but if you upgrade to Visual Studio 2010, you can use the free \n<a href="http://visualstudiogallery.msdn.microsoft.com/en-us/d0d33361-18e2-46c0-8ff2-4adea1e34fef" rel="noreferrer">Visual Studio 2010 Pro Power Tools</a> from Microsoft to achieve this.</p>\n'}, {'answer_id': 7895889, 'author': 'doogie', 'author_id': 915228, 'author_profile': 'https://Stackoverflow.com/users/915228', 'pm_score': 2, 'selected': False, 'text': '<p>Yes, both Resharper (a must have!) and Productivity Power Tools have this feature. </p>\n\n<p>Interesting quirk, though. </p>\n\n<p>If you just go with the defaults on both tools (if you install both tools) you can experience a frequent double-jump problem (jump to definition from where you first click and then jump again from what your cursor is above upon getting to that first definition) until you turn off one of the Ctrl-Click features of these add-ons.</p>\n'}]
['https://Stackoverflow.com/questions/80857', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/369/']