removing line numbers for copied code in eclipse

I am wondering if I have some code with line numbers embedded,

 1 int a;     
 2 MyC b;    
 3 YourC c;

etc., and then I copy them and try to paste them in Eclipse, how to get rid of these line numbers to make the source code valid? Is there any convenient way, or a short-cut key?

Thank you.


Simply use the Alt+Shift+A (Eclipse 3.5 M5 and above) shortcut to toggle block selection mode. Then select the column with line numbers and delete it!

To make it easier you could setup a macro, but for that you need additional plug-in. I'm not aware of how to do it even easier.

Need Your Help

Counting the occurrences of similar rows of data frame


data <- data.frame(CSF = c(10,10,13,11,13,10), CSF.1 = c(11,11,13,12,13,11), D13 = c(10,9,11,11,11,10), D13.1 = c(13,10,12,11,12,13))

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.