473,385 Members | 1,353 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,385 software developers and data experts.

VS2005 loses tabs when pasting

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.
Feb 17 '07 #1
3 1324
On Sat, 17 Feb 2007 21:21:23 -0000, "Paul E Collins"
<fi******************@CL4.orgwrote:
>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
Feb 18 '07 #2
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

Feb 18 '07 #3
"Marc Gravell" <ma**********@gmail.comwrote:
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.
Feb 18 '07 #4

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

Similar topics

3
by: Michael Shell | last post by:
Greetings, Consider the XHTML document attached at the end of this post. When viewed under Firefox 1.0.5 on Linux, highlighting and pasting (into a text editor) the <pre> tag listing will...
0
by: carbon_dragon | last post by:
The application is a console app, though it does have a temporary windows form console, which is fairly complicated and which was developed in VS2003. I installed VS2005 on an XP OS and tried to...
8
by: Al Knowles | last post by:
I have researched and tried every method I can find for passing a two-page tif file from a VB6 application to a web service via XML. These include XMLTextReader.ReadBase64, Convert.FromBase64,...
4
by: Phill | last post by:
Here's what I'm doing to make the right context mnue show up based on what node was cliked: private void tvwMenu_MouseUp(object sender, MouseEventArgs e) { //Select Node When Right Clicked &...
3
by: Pieter | last post by:
Hi, I'm making an Outlook (2003) Add-In (VB.NET 2005), with a simple button and a textbox (msoControlEdit). When the user types something in the textbox, and clicks on the button, the text in...
2
by: V&G | last post by:
Hello all, I have following configuration for remoting application: Server side; was wrote in VS2003 Shared library; was wrote in VS2003. Contains shared objects Client side; was wrote in...
2
by: teixeira1985 | last post by:
Hi , Due an unknown cause VS2005 started to show an error when i switch from code to design in windows forms projects. I repaired the installation but the same happens. The error is: One or...
1
by: =?Utf-8?B?QnJpYW4=?= | last post by:
I have a master page that contains a simple treeview populated using a SiteMapDataSource so the data is static. Here is my problem. When I expand the menu to show the 2nd level treeview items and...
1
by: sklett | last post by:
I'm curious if anyone has encountered this. I'm developing an outlook add-in that needs to display a PDF. I've included the Adobe Reader ActiveX cotnrol and when I re-load the form I get the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?

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.