Solved

copy and paste messed up

Posted on 2011-09-20
3
233 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 33

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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupSumClump challenge 9 116
advertisement module in core php 4 163
silent install of security banner via msiexec command 4 88
draw a Christmas tree by using a nested loop? 26 62
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

803 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