Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1812 smart indents

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
peck797 Posted - Feb 12 2010 : 11:17:59 AM
It's a little bit vague and I have not found a reliable way to reproduce it, yet, but I have just upgraded to build 1812 and the IDE seems to want to forget to use smart indents all of a sudden.

IOW, the caret will suddenly and without any apparent cause decide to move to the very start of the next line after I hit enter, rather than under the first non-whitespace character from the previous line as I would expect.
13   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Mar 08 2010 : 12:05:50 PM
I am glad this is fixed for you. I still have no idea what caused the problem, so let us hope it stays fixed
SvenC Posted - Mar 07 2010 : 12:22:52 PM
1814 fixed my indent problems. Thanks
SvenC Posted - Mar 04 2010 : 02:37:45 AM
Just installed 1814 and see what happens today.
feline Posted - Mar 03 2010 : 6:57:41 PM
This does not make any sense. VA does not get involved in code formatting, it sounds like something is pushing the IDE into a bad state, but what?

Can you both please try VA 1814, which has just been posted, and see if this makes any difference:

http://www.wholetomato.com/downloads/default.asp
znakeeye Posted - Mar 03 2010 : 03:20:53 AM
Exactly the same problem here, using 1812 with VS 2008 SP1 and C#.
SvenC Posted - Feb 26 2010 : 02:30:35 AM
Could not stand reloading the current project any more and went back to 1810.

If you have questions regarding behavior of 1812 I can reinstall it and use it for a day or so
SvenC Posted - Feb 24 2010 : 1:41:42 PM
Another hint: completing an expression with ';' or entering a closing '}' does only update the indent if the code in the current method is valid.

I just edited some code where a method call some lines below was incomplete. Something like "o.CallMe(". Typing ; in the current line while auto indenting went to "off mode" didn't help anymore. Completing the method call to o.CallMe("hello"); and then typing ; in the non indented line did give me the correct indent again. Again: only for that line or block of code. The next <return> brings me back to column 1. Only Close/Open Solution or restarting VS brings auto indent back.
SvenC Posted - Feb 24 2010 : 11:48:54 AM
Hi feline,

"Format Selection" does not update the indent, but completing the current expression, e.g. entering the ';' at the end of the line or entering a closing '}'. But the next <return> puts me back to the first column again.

In addition: when this non-indenting behaviour starts the intellisense comboboxes for members do not appear when typing '.'. The combobox does open when I force it with <ctrl>+<space>.

I have the feeling that things go wrong while the code is in an incorrect state while typing. So e.g. closing braces are or parantheses are missing. But completing the code so that it gets compilable again does not help.

Regards,
SvenC
feline Posted - Feb 24 2010 : 09:28:52 AM
Very strange.

SvenC, next time this problem shows up can you please change the indenting of a few lines of code, make sure they are not indented at all for example, then select them and trigger the IDE command:

IDE Edit menu -> Advanced -> Format Selection

Which is CTRK-K, CTRL-F on my system.

Does this do anything? I am wondering if the IDE still realises how to format / indent code.

I am wondering if this could somehow be file or position in file specific. If so then a restart may not actually fix it, if you start writing code somewhere else.
Dany Posted - Feb 24 2010 : 01:10:36 AM
Exactly the same here with C# in VS2005 SP1 on XP SP3.

I reverted to 1810 and it has been gone for good (I left it there).

Edit: I thought 1812 is still beta not a general release?
SvenC Posted - Feb 23 2010 : 05:06:05 AM
Same issue here with VS2008 SP1 and C#.
Did not occur with 1738 but started to happen sometimes after I upgraded to 1812.

When the IDE does not indent anymore disabling/enabling VAX does not make a difference, only restarting the IDE helps.
feline Posted - Feb 15 2010 : 09:12:00 AM
When this problem shows up can you try disabling VA using the menu item:

VAssistX -> Enable/Disable Visual Assist X

does this make any difference to the problem or not?
peck797 Posted - Feb 12 2010 : 11:21:31 AM
I forgot to mention that restarting the IDE seems to make it revert to the normal behaviour 100% of the time and it will then continue to indent properly "for a while" before the bug shows up again.

This is VS2008 C#, if that's at all relevant

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000