Solved

copy and paste messed up

Posted on 2011-09-20
3
242 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 34

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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Simple Linear Regression

617 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