Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Surround with does not keep formatting

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
rob8861 Posted - Feb 02 2015 : 11:44:49 AM
Hello,

I recently downloaded VAX and so far I like it. However, I did notice some minor glitches I'd like to point out (could be that I just don't know how to do it, so if that's the case, my apology).
I am using version 10.9.2052.0 built 2014.11.05
on Visual Studio 2013 and the lang is C#.

1) when I highlight a block of code and select surround with.., the formatting is lost. this is an awesome feature but it would be even better if the formatting can be retained. (I think this is also the same in C++).

2) The default snippets that come with Visual Studio have that cool built in feature where a keyword can be highlighted and overwritten immediately after expansion. For example the If snippet. However, I can't figure out how to do that in VAX. the only way I know of is by using a string keyword which triggers the pop up.

I had one more but I can't remember it right now .

Thanks,
6   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Feb 06 2015 : 5:30:49 PM
If you are selecting the lines to surround with the keyboard then it can be easier to make sure that all of the lines have been selected. I agree that your case is not being handled well, which I have put in a case for. Unfortunately I cannot give you an estimate yet for when this will be done.
rob8861 Posted - Feb 06 2015 : 08:00:49 AM
thanks for the reply.
I can confirm that when selecting the leading white space, the "Surround with..." works as expected.
unless it was intended to behave like this, it would be nice to have it handle both cases.

Cheers
feline Posted - Feb 05 2015 : 2:38:00 PM
Thank you for the screen capture, I can reproduce the effect here, and I see what is going wrong. In your screen capture your multi-line selection does not select all of the first line. You have left all of the leading white space unselected. If you select all of each line then the formatting is correct when you do a surround with.

This is somewhere between intended behaviour and a bug. I agree that in this specific case what you end up with is wrong. But I am wondering if there are cases where this is the correct behaviour, and how to tell them apart. For example when surrounding just part of a single line you want the rest of the line left alone.

I think I see a rule for handling this, so I have put in a bug report for this:

case=87746
rob8861 Posted - Feb 05 2015 : 12:33:21 PM
Thank you for the reply.

I created a short screen cast to demonstrate the formatting issue. you can see that it works only if I try to surround a single line of code.

http://screencast.com/t/4jbGw5IvISo

Thanks,

p.s: this issue seems to be only in c#. I wasn't able to reproduce it in c++.

feline Posted - Feb 04 2015 : 10:24:31 PM
I am sorry about the slow reply. We try to answer all questions and queries quickly, but we cannot always do so as quickly as we would like.

point 1, can you post a simple code sample of the code you are working with, where the formatting is being lost? I am not seeing any problem with the formatting here, testing VS2013 and VA 2052. So I am wondering if your initial code has come specific formatting that is a factor.

point 2, this is currently how it works, but we are looking into prompting for values inside the editor, the same way the default snippets do:

case=24605

Its worth noting that when prompted by the dialog, you can have the snippet insert the string value more than once inside the same snippet, and you will only be prompted once for the string. This can be very useful when using snippets for loops, or anything else where you want to use a symbol name several times.
rob8861 Posted - Feb 04 2015 : 2:55:18 PM
it's been 2 days and nobody from tech support has replied to my post. mine is clearly being ignored for some reason while others are being replied to fairly quickly.
just to clarify, it wasn't meant to be suggestions for improvements . I am expecting an actual reply!!!

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