VS2005 loses tabs when pasting

  • Thread starter Thread starter Paul E Collins
  • Start date Start date
P

Paul E Collins

In Visual Studio 2005, I copy a block of code with tabs in it, such
as:

myLabel.Text = "Please wait ...";
progressBar.Value = 0;

(In the above, the two = signs are aligned with each other using
tabs.)

When I paste it, the tabs are removed, moving the = signs out of sync.

VS2003 did not have this problem, and the tab settings in Tools >
Options > Text Editor don't seem to control it in VS2005. How can I
fix this unwanted reformatting without actually turning off the good
features like IntelliSense auto-indentation of new lines?

Eq.
 
In Visual Studio 2005, I copy a block of code with tabs in it, such
as:

myLabel.Text = "Please wait ...";
progressBar.Value = 0;

(In the above, the two = signs are aligned with each other using
tabs.)

When I paste it, the tabs are removed, moving the = signs out of sync.

VS2003 did not have this problem, and the tab settings in Tools >
Options > Text Editor don't seem to control it in VS2005. How can I
fix this unwanted reformatting without actually turning off the good
features like IntelliSense auto-indentation of new lines?

Eq.

Load the macros up and select the lines you want to align as you described and
run the "LineEmUp" macro.

Good luck with your project,

Otis Mukinfus

http://www.otismukinfus.com
http://www.arltex.com
http://www.tomchilders.com
http://www.n5ge.com
 
I know you mentioned Options > Text Editor, but have you tried Options
Text Editor > C# > Formatting > Adjust indentation on paste.

I've just tried it, and it seems to work.

Personally, I rarely see the benefit in taking the time to line up
such things... but up to you ;-p

Marc
 
Marc Gravell said:
I know you mentioned Options > Text Editor, but have
you tried Options > Text Editor > C# > Formatting >
Adjust indentation on paste.

That's it: thanks. I'd expected it to be under "Tabs", if anywhere.

Eq.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top