 |
|
 |
Seems to work, but creates a new issue for me.
If you highlight a piece of text and then paste whats in your clipboard while the selection is still highlighted, it doesn't overwrite the highlighted text. It appends to the begining of the text. I suppose I could just enable the add-on when I want to paste without auto ID and stop whining. Yes, I think I'll do that.
Thanks.
|
|
|
|
 |
|
 |
Just a quick reply to an existing (unrelated) post to say THANKS to the developer for this add-in. I have been looking for a solution to this problem, on and off, for several years, and am glad my search skills have improved enough to find one now. This add-in is much appreciated.
|
|
|
|
 |
|
 |
so.. it seems there have been several bug fixes, but any change of a new installable version?
thanks,
nick
|
|
|
|
 |
|
 |
I just downloaded the installer and installed it, then I enabled it (startup only) in the Addin manager.
You mentioned in another thread that:
"You need to modify the setup app or add registry entries manually to make it work for VS.NET 2003. "
However, I can't find what registry entries you are talking about.
|
|
|
|
 |
|
 |
I installed it in VS.NET 2002, and it does not work. I went in and enabled it to run on startup, command prompt, and restarted VS.NET, but it does not work!!!
|
|
|
|
 |
|
 |
First of all, Rama thank you very much for the code to fix this very annoying "Feature" of Visual Studio.
I have made the suggested changes shown in other threads plus added additional code to create a 1 step undo of the pasting operation.
Hopefully you and others will find the additional Undo steps helpfull.
This is the important code fragment with my changes.
IDataObject dataObject = Clipboard.GetDataObject();
string text = (string)dataObject.GetData(DataFormats.Text);
<BR> <BR>
TextWindow tw = (TextWindow)htmlWindow.CurrentTabObject;
<BR> <BR>
bool bWasOpen = applicationObject.DTE.UndoContext.IsOpen;
if (!bWasOpen)
applicationObject.DTE.UndoContext.Open("Paste with Selection Removal", false);
<BR> <BR>
if (tw.Selection.Text.Length != 0)
tw.Selection.DeleteLeft(1);
<BR> <BR>
tw.Selection.Insert(text, (int)(vsInsertFlags.vsInsertFlagsInsertAtEnd));
tw.Selection.CharRight(false, 1);
<BR> <BR>
if (!bWasOpen)
applicationObject.DTE.UndoContext.Close();
|
|
|
|
 |
|
 |
Great program Rama!
One thing I noticed about the program though.
When you paste, the program:
doesn’t delete the current selection.
keeps the newly pasted section highlited.
the cursor remains at the beginning of the highlited pasted text.
As you stated in the previous feature request, adding the following line in Connect.cs fixes the last 2 problems.
Add: tw.Selection.CharRight(false, 1);
After: tw.Selection.Insert(text, (int)vsInsertFlags.vsInsertFlagsInsertAtStart);
In Function: OnBeforePaste(...)
The first problem can be fixed by doing the following:
Add: if ( !tw.Selection.IsEmpty )
tw.Selection.Backspace(1);
Before: tw.Selection.Insert(text, (int)vsInsertFlags.vsInsertFlagsInsertAtStart);
In Function: OnBeforePaste(...)
Hope this helps!
|
|
|
|
 |
|
 |
awesome work. i installed the 2002 version and it works as advertised. However, when i paste text, the new text is selected. if i want to paste 3 lines in a row, i now have to paste, position the cursor to end of the text, hit return, and then paste again. is there any way to not have the newly pasted text selected?
thanks a ton,
-Brian
|
|
|
|
 |
|
 |
It is pretyy simple to do that. I will post an update as soon as possible
If you want to do that your self you need to add the following code
tw.Selection.CharRight(false, 1);
One of the things I learned involved copying & pasting the code. You'll notice that some of the code is virtually the same for each player, I had forgotten to change the files for player 2 for upgrade. I finally noticed it and provided the fix.
Rodney Yates in Points of Interest in this article
|
|
|
|
 |
|
 |
...I will have your baby Rama. Trying it out now. You will be a hero, what a great way to start the week!
Paul Watson Bluegrass Cape Town, South Africa
brianwelsch wrote:
I find my day goes by more smoothly if I never question other peoples fantasies. My own disturb me enough.
|
|
|
|
 |
|
 |
Hey Rama it works and beautiful it is
However it does not list in the Add-In manager. I am using VS.NET 2003. It does work, just does not list. Odd. Oh well, thanks a million!
Paul Watson Bluegrass Cape Town, South Africa
brianwelsch wrote:
I find my day goes by more smoothly if I never question other peoples fantasies. My own disturb me enough.
|
|
|
|
 |
|
 |
Currently it works only on VS.NET 2002. You need to modify the setup app or add registry entries manually to make it work for VS.NET 2003.
One of the things I learned involved copying & pasting the code. You'll notice that some of the code is virtually the same for each player, I had forgotten to change the files for player 2 for upgrade. I finally noticed it and provided the fix.
Rodney Yates in Points of Interest in this article
|
|
|
|
 |
|
 |
I have updated the source to work for both design and source tab. I have also added support for VS.NET 2003. Now it should work for you,
One of the things I learned involved copying & pasting the code. You'll notice that some of the code is virtually the same for each player, I had forgotten to change the files for player 2 for upgrade. I finally noticed it and provided the fix.
Rodney Yates in Points of Interest in this article
|
|
|
|
 |