Click here to Skip to main content
11,496,146 members (1,114 online)
Click here to Skip to main content

Tagged as

VS2010 Box Selection with Copy and Paste

, 17 May 2010 CPOL 2K 1
A Cooler one for me is the multi-lines simultaneous typingwith which you can accomplish the above task in the following fewer steps1- In the method where you wish to build the list, paste the list of names2- Because compiler will not understand these lines, it will not be correctly...
The site is currently in read-only mode for maintenance. Posting of new items will be available again shortly.
A Cooler one for me is the multi-lines simultaneous typing
with which you can accomplish the above task in the following fewer steps

1- In the method where you wish to build the list, paste the list of names
2- Because compiler will not understand these lines, it will not be correctly indented, so indent them manually
3- Create a vertical zero-char width box selection before the names
4- Start typing sb.Appen..... (it will be written 20 times Smile | :) )
            StringBuilder sb = new StringBuilder():
            sb.AppendLine("Peter
            sb.AppendLine("Paul
            sb.AppendLine("Mary
            sb.AppendLine("Susan
            sb.AppendLine("Joe
5- Repeat step 3 at the end of the names to close the methods and add semicolons

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Muhammad Gouda
Team Leader www.itworx.com
Egypt Egypt
More than 10 years of experience in the field
Developing worldwide business applications
Fond of Design and Architecture
Writing C#, ASP.NET, WCF, Javascript, JQuery
Follow on   Twitter   Google+   LinkedIn

Comments and Discussions

 
GeneralThanks for this alternate, Muhammad, but I don't think I'm g... Pin
TheyCallMeMrJames18-May-10 3:49
memberTheyCallMeMrJames18-May-10 3:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150520.1 | Last Updated 17 May 2010
Article Copyright 2010 by Muhammad Gouda
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid