Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get triple click to work in Visual Studio's Text Editor

Go into Notepad, Internet Explorer or most other applications that display or edit text. Triple click on some text. Windows will select the entire paragraph under the cursor.

This doesn't work in Visual Studio 2005.

How do I get triple click support in the Visual Studio text editor?

do VS 2008 or VS 2010 solve this?

Is there a macro, setting or plugin that will solve this?

like image 716
gman Avatar asked Jun 24 '09 22:06

gman


People also ask

How to select word in VS code?

Ctrl+D selects the word at the cursor, or the next occurrence of the current selection. Tip: You can also add more cursors with Ctrl+Shift+L, which will add a selection at each occurrence of the current selected text.

How to Replace multiple words in VScode?

You can use the Find control in code or text windows, such as Output windows and Find Results windows, by selecting Edit > Find and Replace or pressing Ctrl+F.

How to change text editor in Visual Studio?

On the menu bar, choose Tools > Options. In the options list, choose Environment > Fonts and Colors. In Show settings for list, select Text Editor. Modify the Font and Size options to change the font and text size for the editor.


2 Answers

I wrote an extension for this for Visual Studio 2010 that you can download from the VS Gallery or directly from the extension manager in Visual Studio, by searching for "triple click" or my name.

You can also read the blog post I wrote about it and check out the source, on github.

like image 122
Noah Richards Avatar answered Sep 19 '22 00:09

Noah Richards


I haven't used it, but CodeProject has an article on SmartHelp 3.04 which mentions that you can triple click to select a whole line.

Also, from Craig Shoemaker's blog.

About VS 2010.

Further enhancements include the ability to triple-click an expansive element like a table and the editor selects the entire table’s markup. Want to surround that table with some additional markup? Just start typing with the table selected and your markup is inserted around the selected code.

like image 22
Matthew Vines Avatar answered Sep 18 '22 00:09

Matthew Vines