"Chop if long" settings

I have settings as shown in the screenshot, and would expect that I would see method signatures chopped if they exceed my margin settings (240), but that is not what I see.

I have a method signature I just tested, that is at column 355 which did not get chopped when I ran a full code cleanup. Is this is expected behavior, a bug or am I missing something in my settings? Any help is greatly appreciated.



Attachment(s):
ReSharper – Options_2011-09-11_15-55-52.png
8 comments

I should mention that I'd previously formatted the signature with a chopped format, but this was subsequently ignored during a signature refactor, which put all the parameters on a single line.

0

Hello,

I'm afraid I couldn't reproduce this behavior. Could you please export your
code style settings as an xml file and attach it here along with a small
sample solution that exhibits this behavior? Also, which version of ReSharper
are you using at the moment?

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I have settings as shown in the screenshot, and would expect that I
would see method signatures chopped if they exceed my margin settings
(240), but that is not what I see.

I have a method signature I just tested, that is at column 355 which
did not get chopped when I ran a full code cleanup. Is this is
expected behavior, a bug or am I missing something in my settings? Any
help is greatly appreciated.

---
Original message URL:
http://devnet.jetbrains.net/message/5319037#5319037



0

Attached are my R# style settings and a sample app in a zip archive. Neither the method signature nor the call to the method signature are being chopped, even though BOTH are beyond the 240 column mark.

-rb


---------------------------------------------
JetBrains ReSharper 6.0 Full Edition
Build 6.0.2202.688 on 2011-06-30T04:14:16

Licensed to: Castle Project (expires 11/10/2011)
Plugins: none
Visual Studio 10.0.40219.1.



---------------------------------------------

Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.0.30319 SP1Rel

Installed Version: Ultimate

Microsoft Office Developer Tools   01019-532-2002102-70624
Microsoft Office Developer Tools

Microsoft Visual Basic 2010   01019-532-2002102-70624
Microsoft Visual Basic 2010

Microsoft Visual C# 2010   01019-532-2002102-70624
Microsoft Visual C# 2010

Microsoft Visual C++ 2010   01019-532-2002102-70624
Microsoft Visual C++ 2010

Microsoft Visual F# 2010   01019-532-2002102-70624
Microsoft Visual F# 2010

Microsoft Visual Studio 2010 Architecture and Modeling Tools   01019-532-2002102-70624
Microsoft Visual Studio 2010 Architecture and Modeling Tools

UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

Microsoft Visual Studio 2010 Code Analysis Spell Checker   01019-532-2002102-70624
Microsoft Visual Studio 2010 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Microsoft Visual Studio 2010 Team Explorer   01019-532-2002102-70624
Microsoft Visual Studio 2010 Team Explorer

Microsoft Visual Web Developer 2010   01019-532-2002102-70624
Microsoft Visual Web Developer 2010

Add Reference Dialog Plus!   1.0
An significantly enhanced Add Reference dialog for managed code projects.

ANTLR language support for Visual Studio   1.0
ANTLR language tools for Visual Studio includes IntelliSense and more... eventually...

Castle Visual Studio Integration   0.4.0
Castle Visual Studio Integration

Coded UI Test Editor   1.0
Enable editing of a UITest (*.uitest) file

Crystal Reports Templates for Microsoft Visual Studio 2010   
Crystal Reports Templates for Microsoft Visual Studio 2010

Document Well 2010 Plus   1.0.10916.0
This package provides configurable behavior for the Document Well and its tabs. Please be sure to let us know what you like/dislike about this extension.

DotNetRegexTester   1.0
This is regular extension tester.

Feature Builder Power Tool   1.0
Feature Builder is a Power Tool for Visual Studio 2010 which helps you easily create rich Visual Studio extensions. More Info at http://channel9.msdn.com/tags/FeatureBuilder

Feature Extension Runtime for Visual Studio Premium and above   1.0
Enables Feature Extensions built with Feature Builder to run.

Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB2565057)   KB2565057
This hotfix is for Microsoft Visual Studio 2010 Ultimate - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2565057.

JetBrains dotTrace Performance 4.5.1   Professional Edition build 4.5.922.8 on 2011-08-03T20:47:06
JetBrains dotTrace Performance 4.5.1 package for Microsoft Visual Studio. For more information about dotTrace, visit http://www.jetbrains.com/profiler/. Copyright © 2005–2011 JetBrains, Inc.

JetBrains ReSharper 6.0   Full Edition build 6.0.2202.688 on 2011-06-30T04:14:16
JetBrains ReSharper 6.0 package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper/. Copyright © 2003–2011 JetBrains, Inc.

Microsoft Moles   1.0.0.0
Moles generator for Visual Studio

Microsoft Pex   0.94.51023.0
Microsoft Pex Visual Studio Extensions

Microsoft Team Foundation Server 2010 Power Tools   3.1.30831.0
Power Tools that extend the Team Foundation Server integration with Visual Studio.

Microsoft Visual Studio 2010 SharePoint Developer Tools   10.0.40219
Microsoft Visual Studio 2010 SharePoint Developer Tools

Microsoft Visual Studio 2010 Ultimate - ENU Service Pack 1 (KB983509)   KB983509
This service pack is for Microsoft Visual Studio 2010 Ultimate - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/983509.

Microsoft Visual Studio Process Editor   1.0
Process Editor for Microsoft Visual Studio Team Foundation Server

Microsoft.VisualStudio.QuickAccess.Package   1.0
Awesome search bar.

NuGet Package Manager   1.5.20902.9023
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PowerCommands for Visual Studio 2010   1.0
A set of power commands for Visual Studio 2010

PowerGUIExt   1.0
PowerGUI integrated into Visual Studio.

Regular Expression Margin   1.0
This package exposes a margin which enables .Net Regular Expressions find/replace on the current file.

SpellCheckerPackage   1.0
Spell checker extension

StyleCop   4.5
Provides source code style and consistency tools.

Team Foundation Sidekicks   3.0
Team Foundation Sidekicks utilities

VisualHG   1.1.4
Mercurial source contol provider.

VSCommands 2010   3.7.3.0
Prevent accidental Drag & Drop in Solution Explorer, Group Items, Locate In Solution, Create Code Contract, Copy/Paste References and many many others!

Windows Installer XML Toolset 3.5   
Windows Installer XML Toolset 3.5.2519.0
Copyright © Microsoft Corporation. All rights reserved.

WoVS Toolkit   1.0
Provides automation for creating WoVS extensions.

.NET Reflector
Visual Studio add-in that integrates .NET Reflector into Visual Studio to allow you to seamlessly debug into third-party code and assemblies, even if you don't have the source code for them.
Visit www.red-gate.com for more information.
Copyright (c) 2009-2011 Red Gate Software Inc.

AtomineerUtils for Visual Studio
For more information about AtomineerUtils, visit the website:
    http://www.atomineerutils.com/
Copyright (c) 1996-2010 Atomineer  -  Written by Jason Williams.


FogBugz for Visual Studio
Version 3.0. For more information about FogBugz, see the website at
http://www.fogcreek.com/fogbugz
Copyright (c) 2006-2010 Fog Creek Software, Inc. All Rights Reserved.

Huagati DBML/EDMX Tools
For more information about Huagati Systems Co.,Ltd., see the Huagati Systems website at
http://www.huagati.com

Copyright (c) 2008-2009 Huagati Systems Co.,Ltd.

NDepend v3.8.1 Professional
NDepend.Addin
http://www.NDepend.com
Copyright (c) 2004-2010  SMACCHIA.COM SARL

Visual Git
Henk Westhuis
---------------------------------------------



Attachment(s):
ChopIfLong.zip
0

Hello,

Thank you! However, in the attached sample the method signature is at Col
188 and the method call is at Col 147, so they should not get wrapped.

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Attached are my R# style settings and a sample app in a zip archive.
Neither the method signature nor the call to the method signature are
being chopped, even though BOTH are beyond the 240 column mark.

-rb

---------------------------------------------
JetBrains ReSharper 6.0 Full Edition
Build 6.0.2202.688 on 2011-06-30T04:14:16
Licensed to: Castle Project (expires 11/10/2011)
Plugins: none
Visual Studio 10.0.40219.1.
---------------------------------------------
Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.0.30319 SP1Rel
Installed Version: Ultimate

Microsoft Office Developer Tools   01019-532-2002102-70624 Microsoft
Office Developer Tools

Microsoft Visual Basic 2010   01019-532-2002102-70624 Microsoft Visual
Basic 2010

Microsoft Visual C# 2010   01019-532-2002102-70624 Microsoft Visual C#
2010

Microsoft Visual C++ 2010   01019-532-2002102-70624 Microsoft Visual
C++ 2010

Microsoft Visual F# 2010   01019-532-2002102-70624 Microsoft Visual F#
2010

Microsoft Visual Studio 2010 Architecture and Modeling Tools
01019-532-2002102-70624 Microsoft Visual Studio 2010 Architecture and
Modeling Tools

UMLR and Unified Modeling LanguageT are trademarks or registered
trademarks of the Object Management Group, Inc. in the United States
and other countries.

Microsoft Visual Studio 2010 Code Analysis Spell Checker
01019-532-2002102-70624 Microsoft Visual Studio 2010 Code Analysis
Spell Checker

Portions of International CorrectSpellT spelling correction system ©
1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American HeritageR Dictionary of the English Language, Third
Edition Copyright © 1992 Houghton Mifflin Company. Electronic version
licensed from Lernout & Hauspie Speech Products N.V. All rights
reserved.

Microsoft Visual Studio 2010 Team Explorer   01019-532-2002102-70624
Microsoft Visual Studio 2010 Team Explorer

Microsoft Visual Web Developer 2010   01019-532-2002102-70624
Microsoft Visual Web Developer 2010

Add Reference Dialog Plus!   1.0
An significantly enhanced Add Reference dialog for managed code
projects.
ANTLR language support for Visual Studio   1.0
ANTLR language tools for Visual Studio includes IntelliSense and
more... eventually...
Castle Visual Studio Integration   0.4.0
Castle Visual Studio Integration
Coded UI Test Editor   1.0
Enable editing of a UITest (*.uitest) file
Crystal Reports Templates for Microsoft Visual Studio 2010   Crystal
Reports Templates for Microsoft Visual Studio 2010

Document Well 2010 Plus   1.0.10916.0
This package provides configurable behavior for the Document Well and
its tabs. Please be sure to let us know what you like/dislike about
this extension.
DotNetRegexTester   1.0
This is regular extension tester.
Feature Builder Power Tool   1.0
Feature Builder is a Power Tool for Visual Studio 2010 which helps you
easily create rich Visual Studio extensions. More Info at
http://channel9.msdn.com/tags/FeatureBuilder
Feature Extension Runtime for Visual Studio Premium and above   10
Enables Feature Extensions built with Feature Builder to run.

Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB2565057)
KB2565057
This hotfix is for Microsoft Visual Studio 2010 Ultimate - ENU.
If you later install a more recent service pack, this hotfix will be
uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2565057.
JetBrains dotTrace Performance 4.5.1   Professional Edition build
4.5.922.8 on 2011-08-03T20:47:06

JetBrains dotTrace Performance 4.5.1 package for Microsoft Visual
Studio. For more information about dotTrace, visit
http://www.jetbrains.com/profiler/. Copyright © 2005-2011 JetBrains,
Inc.

JetBrains ReSharper 6.0   Full Edition build 6.0.2202.688 on
2011-06-30T04:14:16

JetBrains ReSharper 6.0 package for Microsoft Visual Studio. For more
information about ReSharper, visit
http://www.jetbrains.com/resharper/. Copyright © 2003-2011 JetBrains,
Inc.

Microsoft Moles   1.0.0.0
Moles generator for Visual Studio
Microsoft Pex   0.94.51023.0
Microsoft Pex Visual Studio Extensions
Microsoft Team Foundation Server 2010 Power Tools   3.1.30831.0 Power
Tools that extend the Team Foundation Server integration with Visual
Studio.

Microsoft Visual Studio 2010 SharePoint Developer Tools   10.0.40219
Microsoft Visual Studio 2010 SharePoint Developer Tools

Microsoft Visual Studio 2010 Ultimate - ENU Service Pack 1 (KB983509)
KB983509

This service pack is for Microsoft Visual Studio 2010 Ultimate - ENU.

If you later install a more recent service pack, this service pack
will be uninstalled automatically.

For more information, visit http://support.microsoft.com/kb/983509.

Microsoft Visual Studio Process Editor   1.0
Process Editor for Microsoft Visual Studio Team Foundation Server
Microsoft.VisualStudio.QuickAccess.Package   1.0
Awesome search bar.
NuGet Package Manager   1.5.20902.9023
NuGet Package Manager in Visual Studio. For more information about
NuGet, visit http://docs.nuget.org/.
PowerCommands for Visual Studio 2010   1.0
A set of power commands for Visual Studio 2010
PowerGUIExt   1.0
PowerGUI integrated into Visual Studio.
Regular Expression Margin   1.0
This package exposes a margin which enables .Net Regular Expressions
find/replace on the current file.
SpellCheckerPackage   1.0
Spell checker extension
StyleCop   4.5
Provides source code style and consistency tools.
Team Foundation Sidekicks   3.0
Team Foundation Sidekicks utilities
VisualHG   1.1.4
Mercurial source contol provider.
VSCommands 2010   3.7.3.0
Prevent accidental Drag & Drop in Solution Explorer, Group Items,
Locate In Solution, Create Code Contract, Copy/Paste References and
many many others!
Windows Installer XML Toolset 3.5   Windows Installer XML Toolset
3.5.2519.0 Copyright © Microsoft Corporation. All rights reserved.

WoVS Toolkit   1.0
Provides automation for creating WoVS extensions.
NET Reflector

Visual Studio add-in that integrates .NET Reflector into Visual Studio
to allow you to seamlessly debug into third-party code and assemblies,
even if you don't have the source code for them.

Visit www.red-gate.com for more information.

Copyright (c) 2009-2011 Red Gate Software Inc.

AtomineerUtils for Visual Studio
For more information about AtomineerUtils, visit the website:
http://www.atomineerutils.com/
Copyright (c) 1996-2010 Atomineer  -  Written by Jason Williams.
FogBugz for Visual Studio
Version 3.0. For more information about FogBugz, see the website at
http://www.fogcreek.com/fogbugz
Copyright (c) 2006-2010 Fog Creek Software, Inc. All Rights Reserved.
Huagati DBML/EDMX Tools
For more information about Huagati Systems Co.,Ltd., see the Huagati
Systems website at
http://www.huagati.com
Copyright (c) 2008-2009 Huagati Systems Co.,Ltd.

NDepend v3.8.1 Professional
NDepend.Addin
http://www.NDepend.com
Copyright (c) 2004-2010  SMACCHIA.COM SARL
Visual Git
Henk Westhuis
---------------------------------------------
---
Original message URL:
http://devnet.jetbrains.net/message/5319190#5319190



0

Then I'm completely confused. Please see my attached screenshot, where I place a cursor, and then read the column mark from the bottom of my VS window.



Attachment(s):
ChopIfLong - Microsoft Visual Studio_2011-09-14_05-28-24.png
ChopIfLong - Microsoft Visual Studio_2011-09-14_05-29-10.png
0

Hello,

That's strange: on my machine the 'Col' number matches the 'Ch' number. Also,
I've copy/pasted the whole method signature line to notepad, turned on Status
bar and turned off Word wrap and it still shows that it ends on Col 188.
I suppose that some of the third-party installed extensions could cause this
behavior. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Then I'm completely confused. Please see my attached screenshot, where
I place a cursor, and then read the column mark from the bottom of my
VS window.

---
Original message URL:
http://devnet.jetbrains.net/message/5319264#5319264



0

I understand that Col represents the width, and Ch represents the number of characters.

Therefore, with Tab settings set to Tab-2, a tab would be 1 Ch and 2 Col.

Even so, that doesn't account for the vast difference I'm seeing. Nor does that really speak to the fact that I didn't just COUNT the damn characters! ;)

-rb

0

Here's a screencast of the Col and Ch counts - with very unusual behavior.

I realize this thread has gone off on a tangent, so if anyone could direct me to another resource to track this behavior down, I'd appreciate it.



Attachment(s):
ScreenCapture_9-14-2011 11.04.00 AM.wmv.zip
0

Please sign in to leave a comment.