Solved

copy and paste messed up

Posted on 2011-09-20
3
228 Views
Last Modified: 2012-05-12
when i say copy/paste i am refering to copying/pasting code (asp.net or c# etc...) let say if i copy code and try to paste either in notepad or forums question the indent is messedup and is there any better way to copy and paste the code?
0
Comment
Question by:nisarkhan
3 Comments
 
LVL 6

Accepted Solution

by:
Darren Sharples earned 250 total points
ID: 36568264
I though wordpad can maintain indents.  Might be worth a try?
0
 
LVL 32

Assisted Solution

by:sarabande
sarabande earned 250 total points
ID: 36568710
when you were used to c# you probably have visual studio installed.

in visual studio you could enable "virtual space" via Tools - Options - Text Editor - All Languages or the language where your code is from.

you also could enable that tabs would be replaced by spaces.

with that settings you could paste the clipboard contents first to an empty page in the visual studio, then do the indentation by selecting all and do alt+f8. the 'virtual space' then would allow you to select any text box out of the code such that you can cut off the leading spaces. hold the alt key and click with the mouse to the top-left of the text rectangle you want to put into clipboard. then you can move with mouse to the bottom-right and select the text. if you paste that to any other program it should be properly intended cause it contains only spaces and no tabs.

Sara

0
 
LVL 7

Author Closing Comment

by:nisarkhan
ID: 36757083
did not really get but closing the for the sake of it.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now