.net - Dealing with VB.NET Linq formatting in Visual Studio? -


Want to format the VB.Net Link code anyhow in visualization studio? What are some tricks for you, how do you work with it? I know that Visual Studio lets you uncheck the option of "Beautiful list (code) of code", but most of the time it's really easy to continue and with a team of developers who can make other settings If this is not really a viable solution, then my questions are:

  1. You can not use multiline link statements in VB without fighting Visual Studio code formatting Disposed?
  2. What is a special style guide for Linq is recommended VB.NET? Something like this is readable, and does the visual studio like without refunding nightmare?
  3. Edit -

    It may be that the clarity in my original question is not desired Ho. Here is a more concrete example: Take this fake linq query:

      Select one of the dcGetTable (DAL.GenericTableDao) () in the slow query = .withID = a.ID, .Something Eclse = a.SomethingElse, .MyOtherRecord = (DTC from Dc.gettable (DAL.DetailTableDao's) () where dtl.id2 = a.ID_ and also select dtl.Code = a.Code_dtl.RecordName ) .FirstOrDefault (), .LastField = A.LastField}  

    Everything is well-formatted and queued, but formatting in any of the changes in the query in Visual Studio and Only instant CTRL -Z will stop it. Which is fine if there is a standard method that would like to see VS multiline Linq formatted, but if not, then continuous revision VS tries to make no sense. I am trying to see if I have missed out on dealing with some standard or any other community in this effectively. (BTW - Using tabs instead of spaces for indent) is not certain if he or she plays in this problem.)


    Edit 2 -

    See the answer below that solved.

I solved it. I have smart indenting for VB tabs are okay, the beautiful listing of code is fine, but to leave the indent alone well, the block for Visual Studio It has to be set on by thanks to @Roknitecststring and @Rosissaid.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -