1

I'm using the Visual Studio 2010 Productivity Power Tools and I can't get the Align Assignments feature to work in VB.NET:

Productivity Power Tools

Align Assignments

This extension is useful for making your code a little more readable by aligning the assignments when you type Ctrl+Alt+]

Please note: This may conflict with your formatting settings. E.g. in C# you will need to disable: Tools->Options->Text Editor->C#->Formatting->Spacing->"Ignore spaces in declaration statements"

When I put lots of spaces in a line of code and press Ctrl + Alt + ] it reverts the line back to normal formatting. This indicates there's a conflict with my formatting settings. The problem is with VB.NET and I dont know how to "Ignore spaces in declaration statements"?

ProgramFOX
  • 6,131
  • 11
  • 45
  • 51
Jeremy Thompson
  • 61,933
  • 36
  • 195
  • 321

1 Answers1

0

If this is not working for you, it could because your C# settings are stopping it. To , you must uncheck: Tools menu –> Options –> Text Editor –> C# –> Formatting –> Spacing –> Ignore spaces in declaration statements

code master
  • 2,026
  • 5
  • 30
  • 49
  • I appreciate your answer but its doesn't work and unfortunately its Vb.Net... (I'd kill to use C# at work) I admire your thinking but its a bit too far outside the box.. as C# settings have no effect on VB * in this context anyway – Jeremy Thompson Jan 12 '11 at 00:30