Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Unwanted auto-formatting
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Shambler
Senior Member

48 Posts

Posted - Oct 29 2014 :  09:49:08 AM  Show Profile  Reply with Quote
I have some code that is visually formatted in a particular way:
.TabWellContentLeft()
[
	SNew(STextBlock)
	.Text(FString(TEXT("Filter:")))
]


I want to add the following code:
.TabWellContentLeft()
[
	SNew(STextBlock)
	.VAlign(VAlign_Center)
	.Text(FString(TEXT("Filter:")))
]


To start with, I have the cursor placed where the pipe '|' char is:
.TabWellContentLeft()
[
	SNew(STextBlock)
	|
	.Text(FString(TEXT("Filter:")))
]


When I type the dot '.', some kind of autoformatting happens, and it types like this:
.TabWellContentLeft()
[
	SNew(STextBlock)
.
	.Text(FString(TEXT("Filter:")))
]


The dot should be indented, but for some reason, is not.

The feature that is causing this, is the "Convert dot to -> (in C/C++)" feature - even though no conversion happens here, it still seems to apply some auto-formatting, which removes the indent.

Would be good if this were fixed, as when I try to write code with this syntax, I end up having to correct that indent a lot - which is awkward; thanks.

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Oct 30 2014 :  6:04:55 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=57139

I have a couple of possible work arounds, the first is to press space or tab before typing the dot, the second is to press Ctrl-K, Ctrl-F to trigger the IDE's format command, which will fix the indenting after you have finished typing the line.

zen is the art of being at one with the two'ness
Go to Top of Page

Shambler
Senior Member

48 Posts

Posted - Oct 31 2014 :  1:43:34 PM  Show Profile  Reply with Quote
Both of those workarounds look good; cheers!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000