Bug Report T551274
Visible to All Users

Selection Embedding - The Embed Selection ToString feature should correctly process double quotation marks in selected code

created 7 years ago

I enabled the ToString functionality.
Unfortunately it does not seem to handle escaping existing double quotes ( " )  to ( " ) like the example in the link below:

https://community.devexpress.com/blogs/markmiller/archive/2010/03/09/slicing-and-dicing-strings-with-coderush-for-visual-studio.aspx

I see the template values for ToString and see «EscapeQuotes», but was not clear how to enable it.

Comments (1)
DevExpress Support Team 7 years ago

    I have reproduced the incorrect behavior in the following code:

    C#
    namespace NamespaceName { public class MyClass { public void MethodName() { <<anchor>>string str = "some text";<<caret>> } } }

    We will notify you in the context of the current ticket as soon as we fix the problem.

    Answers approved by DevExpress Support

    created 7 years ago (modified 7 years ago)

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Comments (2)
      L L
      Luis Miguel Gomez Camino 7 years ago

        Hi,

        My Coderush version is 17.2.7 and with vb .net escapequotes doesn´t work properly.

        DevExpress Support Team 7 years ago

          Hi Luis,
          I've created a separate ticket on your behalf (T621954: The EscapeQuotes command does not work in the "To string" selection embedding). It has been placed in our processing queue and will be answered shortly.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.