VS2005 loses tabs when pasting

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.
 
O

Otis Mukinfus

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
 
M

Marc Gravell

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
 
P

Paul E Collins

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

Similar Threads

Tabs and Indents 2
Application.StartupPath not working in VS2005 (worked in VS2003) 3
Underwhelm by VS2005 52
Windows 10 Windows 10 Fall Creators Update 15
Major Whidbey complaint (!) 12
CSharp Coding Standards 18
[Text Editors] Comparison 120
Babya Logic 2 2

Top