473,405 Members | 2,445 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,405 software developers and data experts.

print source code - tabs ignored

in the vs studio editor, I change the tab indent from 4 to 2. And my
C# code displays with 2 characters per indent level instead of 4. But
when I print, the indent is back to 4.

also, when a stmt with a lot of paramters does not fit on a single
line, I use tabs to get all the parms to line up one under the other:
CallMethodWithManyParms( parm1,
tab tab tab tab parm2,
tab tab tab tab parm3 ) ;

but again when I print, all the tabs are ignored and the text from the
additional lines starts in column 1.
CallMethodWithManyParms( parm1,
parm2,
parm3 ) ;

How do I get the c# editor to print the page the same as it looks?

thanks,

-Steve
Nov 15 '05 #1
4 1639

Hi Steve,

Thanks for posting in this group.
This is an already known issue, tab size is hard coded in the print code.
And unfortunately I can not find a workaround for this issue.
But we have reported this issue to our product team.
Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #2
v-*****@online.microsoft.com ("Jeffrey Tan[MSFT]") wrote in message news:<ks**************@cpmsftngxa07.phx.gbl>...
Hi Steve,

Thanks for posting in this group.
This is an already known issue, tab size is hard coded in the print code.
And unfortunately I can not find a workaround for this issue.
But we have reported this issue to our product team.
Thanks for your understanding.


Hi Jeffrey,

When the product team fixes the problem will the fix be available via
a service pack?

Can I write a VS macro that would print a source file?

thanks for the help,

-Steve
Nov 15 '05 #3
Steve, the .cs is just a simple text file. I've been playing around with a
Pretty Printer and it's no problem.

"Steve Richter" <sr******@autocoder.com> wrote in message
news:7b*************************@posting.google.co m...

Can I write a VS macro that would print a source file?

thanks for the help,

-Steve

Nov 15 '05 #4

Hi Steve,

Thanks for your feedback.
I can not confirm the fix way of this issue, may be it is still being
considered.
As I think, your own print code will only print the content of the .cs file
as plain text file. It will not apply the support of VS.net editor, so it
will only use the tab size of text file.(If you use notpad to open the .cs
file, you will find the tab size remain the default, while not the setting
of VS.net editor).

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #5

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

Similar topics

14
by: Marcin Ciura | last post by:
Here is a pre-PEP about print that I wrote recently. Please let me know what is the community's opinion on it. Cheers, Marcin PEP: XXX Title: Print Without Intervening Space Version:...
23
by: stewart.midwinter | last post by:
No doubt I've overlooked something obvious, but here goes: Let's say I assign a value to a var, e.g.: myPlace = 'right here' myTime = 'right now' Now let's say I want to print out the two...
4
by: Julie Siebel | last post by:
Apologies...I'm sure this has been asked before, but I can't seem to come up with the correct Google search terms. While my problem is with stylesheets, the errors are being caused by my...
29
by: Bill Marsden | last post by:
Hi. I am an under-graduate currently studying Open Source (Linux) vs Closed Source and Collaboration within the IT Community. I am fairly new to Javascript and I have written a "Lottery Program"...
2
by: Rob | last post by:
I have a webform that uses the TabStrip and MultiPage webcontrols. I also have a Print button on the form to print all of the information of the webform (all tabs): <input type="button"...
25
by: mdh | last post by:
Hi Group, Not looking for an answer, but more of an explanation. Thinking back to those heady days when you had the time to do them, may I ask this. Exercise 1-22 asks for a program to "fold"...
135
by: Xah Lee | last post by:
Tabs versus Spaces in Source Code Xah Lee, 2006-05-13 In coding a computer program, there's often the choices of tabs or spaces for code indentation. There is a large amount of confusion about...
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: 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
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.