How do I set the line width for Compare output from Visual Studio 2010?

已鎖定 How do I set the line width for Compare output from Visual Studio 2010?

  • Monday, June 13, 2011 2:07 PM
     
     

    I'm using VS2010 with Visual SourceSafe and would like to print the output from a Compare operation. However, when I try to send the comparison output to either a file or the clipboard, the line width apparently defaults to 80 characters, hence only displays half of each line.

    I've searched extensively, but can't find how to change the line with settings to, say, 160 characters. Where's it located? I assume the setting is in VS2010 itself, since the width could be set from a command line option to ss.exe and, presumably, the same setting would be needed by any other source control compare program.

    Although I could use the command line tool directly, I feel I shouldn't have to leave the IDE and use a command prompt just to get  the width set right!

All Replies

  • Wednesday, June 15, 2011 6:26 AM
     
     

    Hi Derek,

     

    Thanks for your post.

    I suppose you expect to print the result of different version files' comparison.

    As far as I know, there is no options to change the default width of output pane,

    did you try "Ctrl+A" to select all and copy?

    Hope my reply helps resolve your issue.


    Ziwei Chen [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Wednesday, July 06, 2011 11:07 AM
     
     

    That's exactly what I want to do.

    That is, I'd like to run a comparison of the current edited version with the last version saved in SourceSafe and print the result.

    Since some of the line lengths are quite long (the historical value assumed is up to 80 characters) I'd expect the side-by-side comparison to allow at least 160 characters, but it seems to chop things at around 40.

    I supposed I'll just have to work out how to do the comparison from the command line rather than using the IDE, but it seems like a significant omission to me!

    Derek.