From the course: Visual Studio Developer Tips

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Select vertical sections of code with Box Selection

Select vertical sections of code with Box Selection - Visual Studio Tutorial

From the course: Visual Studio Developer Tips

Select vertical sections of code with Box Selection

- [Instructor] Box Selection is a feature of the Visual Studio Editor. It lets you select and edit sections of your text or code by using a rectangular box selector. For this example, I'm looking at this C sharp code in the method where I have declared a number of double variables and I have decided that I don't want it to be double type anymore. I want it to be the decimal type. I'm sure you have your favorite way of handling this situation. One way would be to type in a new value here and do it on every line or you could use to Find and Replace utility to run through and look for all instances of double and replace that with decimal. Find and Replace works okay but it's a little bit trickier here when you look at the end of this line of code where I've got this literal number. 145.00 That's considered to be a double by Visual Studio and I need to add the M suffix here. Which is easy to do manually typing. It's harder to do this when you're working with the Find and Replace utility…

Contents