473,395 Members | 1,466 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Copy just what you see and not the full expanded view from the code window, to clipboard?

Hi I would like to know if it's possible to copy just the collapsed
view vissible from the IDE to the clipboard.

If i have collapsed code, and then highlight it and copy it - and then
paste this into notepad for example, the full expanded code listing is
pasted.

How do i copy just the collapsed portion as it looks in the IDE before
I copy it?

Thankyou,

Gary-

Dec 19 '06 #1
6 1526
On 19 Dec 2006 03:45:17 -0800, ga********@myway.com wrote:
>Hi I would like to know if it's possible to copy just the collapsed
view vissible from the IDE to the clipboard.

If i have collapsed code, and then highlight it and copy it - and then
paste this into notepad for example, the full expanded code listing is
pasted.

How do i copy just the collapsed portion as it looks in the IDE before
I copy it?

Thankyou,

Gary-
I suspect the only way would be to take the first and last lines of
the text in the clipboard and merge them together somehow to create
what you want.

rossum

Dec 19 '06 #2
Wow I think this is really bad on MS's part.

I would think this would be a very basic requirement, but thanks for
letting me know I wasn't overlooking something simple.

rossum wrote:
On 19 Dec 2006 03:45:17 -0800, ga********@myway.com wrote:
Hi I would like to know if it's possible to copy just the collapsed
view vissible from the IDE to the clipboard.

If i have collapsed code, and then highlight it and copy it - and then
paste this into notepad for example, the full expanded code listing is
pasted.

How do i copy just the collapsed portion as it looks in the IDE before
I copy it?

Thankyou,

Gary-
I suspect the only way would be to take the first and last lines of
the text in the clipboard and merge them together somehow to create
what you want.

rossum
Dec 19 '06 #3
Hi,
<ga********@myway.comwrote in message
news:11**********************@a3g2000cwd.googlegro ups.com...
Hi I would like to know if it's possible to copy just the collapsed
view vissible from the IDE to the clipboard.

If i have collapsed code, and then highlight it and copy it - and then
paste this into notepad for example, the full expanded code listing is
pasted.
Of course, what do you expect to happens?
It's just like if you collapse a method and then copy & paste in the notepad
and you wanted to see it "collapse" , it will not going to happen.

It's only just because the IDE interprete what is written that it is capable
of doing such a magic.
Of course notepad has no idea about that.
--
Ignacio Machin
machin AT laceupsolutions com
Dec 19 '06 #4

It's not a limitation of Notepad but of VS.NET. It's certainly
possible for VS.NET to have an option to copy text as shown instead of
as expanded. I'm sure it's even possible to write a macro or add-in
to achive this.

Other apps provide this type of functionality--in Excel you can hide a
row and then choose to either copy the whole range or copy the visible
rows. Same idea.

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking Mid/Sr. .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.
On Tue, 19 Dec 2006 10:31:25 -0500, "Ignacio Machin \( .NET/ C# MVP
\)" <machin TA laceupsolutions.comwrote:
>Hi,
<ga********@myway.comwrote in message
news:11**********************@a3g2000cwd.googlegr oups.com...
>Hi I would like to know if it's possible to copy just the collapsed
view vissible from the IDE to the clipboard.

If i have collapsed code, and then highlight it and copy it - and then
paste this into notepad for example, the full expanded code listing is
pasted.

Of course, what do you expect to happens?
It's just like if you collapse a method and then copy & paste in the notepad
and you wanted to see it "collapse" , it will not going to happen.

It's only just because the IDE interprete what is written that it is capable
of doing such a magic.
Of course notepad has no idea about that.
Dec 19 '06 #5
Sam,

That's exactly the point of view I was looking at this at, which is why
I thought it was a pretty basic feature omitted from the IDE.

Thanks for making me still feel sane!

Gary-

Samuel R. Neff wrote:
It's not a limitation of Notepad but of VS.NET. It's certainly
possible for VS.NET to have an option to copy text as shown instead of
as expanded. I'm sure it's even possible to write a macro or add-in
to achive this.

Other apps provide this type of functionality--in Excel you can hide a
row and then choose to either copy the whole range or copy the visible
rows. Same idea.

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking Mid/Sr. .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.
On Tue, 19 Dec 2006 10:31:25 -0500, "Ignacio Machin \( .NET/ C# MVP
\)" <machin TA laceupsolutions.comwrote:
Hi,
<ga********@myway.comwrote in message
news:11**********************@a3g2000cwd.googlegro ups.com...
Hi I would like to know if it's possible to copy just the collapsed
view vissible from the IDE to the clipboard.

If i have collapsed code, and then highlight it and copy it - and then
paste this into notepad for example, the full expanded code listing is
pasted.
Of course, what do you expect to happens?
It's just like if you collapse a method and then copy & paste in the notepad
and you wanted to see it "collapse" , it will not going to happen.

It's only just because the IDE interprete what is written that it is capable
of doing such a magic.
Of course notepad has no idea about that.
Dec 19 '06 #6
Today I found a kind of workaround for this problem I posted some time
ago.

While printing I noted there is an option to 'hide collapsed regions',
couple that with a print to file, and CTRL V, - and you have a kind of
awkward way of copying just the expanded view into the clipboard!

Gary-

ga********@myway.com wrote:
Sam,

That's exactly the point of view I was looking at this at, which is why
I thought it was a pretty basic feature omitted from the IDE.

Thanks for making me still feel sane!

Gary-

Samuel R. Neff wrote:
It's not a limitation of Notepad but of VS.NET. It's certainly
possible for VS.NET to have an option to copy text as shown instead of
as expanded. I'm sure it's even possible to write a macro or add-in
to achive this.

Other apps provide this type of functionality--in Excel you can hide a
row and then choose to either copy the whole range or copy the visible
rows. Same idea.

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking Mid/Sr. .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.
On Tue, 19 Dec 2006 10:31:25 -0500, "Ignacio Machin \( .NET/ C# MVP
\)" <machin TA laceupsolutions.comwrote:
>Hi,
>
>
><ga********@myway.comwrote in message
>news:11**********************@a3g2000cwd.googlegr oups.com...
>Hi I would like to know if it's possible to copy just the collapsed
>view vissible from the IDE to the clipboard.
>>
>If i have collapsed code, and then highlight it and copy it - and then
>paste this into notepad for example, the full expanded code listing is
>pasted.
>
>Of course, what do you expect to happens?
>It's just like if you collapse a method and then copy & paste in the notepad
>and you wanted to see it "collapse" , it will not going to happen.
>
>It's only just because the IDE interprete what is written that it is capable
>of doing such a magic.
>Of course notepad has no idea about that.
Jan 5 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: tabonni | last post by:
Hi all I want to create an ASP page, which can copy the real PDF files into the clipboard and then the user can paste it in Outlook message as attachments(it's like inserting attachments) My...
5
by: tabonni | last post by:
Hello All I am creating an ASP page. There are a list of filename and checkbox next to it. When user checked all the documents they want and click ADD TO CLIPBOARD button. All filepaths will be...
3
by: Phil Stanton | last post by:
I am trying to produce a program that will output any Access report to an editable Word document. So far it is working well but slowly with text boxes, labels, and lines. I now need to try to...
1
by: dixie | last post by:
I am doing a job where I need to copy a letter header into each of about 100 letters which are mail merge template documents for about 20 different customers - all up about 2000 copy and pastes...
4
by: Wayne Wengert | last post by:
I have an aspx page on which I am trying to copy the contents of a textbox to the client clipboard when the users clicks a button. The button code is as follows:...
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
0
by: mhospodarsky | last post by:
Hi-- I am using VB.Net 2002 for this app. I am working with Tiff and jpeg images. I have a picturebox set up that I use to view the images. I have the picture box inside of a scrollable...
4
by: ACF | last post by:
Hello, I'm programming an application in MS Access 2003 / 2007 and would like to know how I can copy highlighted text to the windows clipboard? I am now using a statement in combination with...
23
by: Over | last post by:
Hi it's possible with language C, (Mingw or Djgpp) copying the clipboard of WinXp into file.txt? which function must be use. Thanks
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.