Bug Report T656618
Visible to All Users

Code Templates - The "b" (braces) template is not expanded in some cases

created 7 years ago

Hi,

previously it was possible to use the b template in many places. Looks like you have to be in a code block now. Could you please change this behavior to the old one?
Please see attached video that shows what I mean.

Thanks, Stefan

Comments (3)
DevExpress Support Team 7 years ago

    Hello,
    Thank you for the report and video. We reproduced this issue. We will fix it shortly. As a workaround, I suggest you perform these steps:

    1. Open the CodeRush\Code Templates… dialog.
    2. Select "C# " in the Language listbox on the top of the options page.
    3. Navigate to the 1-key\b template.
    4. Change the Context string to this one:
      (![InType]) && ([AtEndOfLine] && !([DeclaresLocal(b)] || [InAnyComment] || [InString] || [AppearsToDeclare(b)]))
    5. Click the OK button and see if this helps.
      See the attached screencast for details.
    DS DS
    Dominik Schneider 7 years ago

      Hi,

      I have tried this but it still not work, it is even worse than before.
      Not it works just when you create a new class.

      If you create a function or a constructor or something similar it is still not working.
      And now the creation of the braces inside a method or something similar isn't working any more.

      Can you please check it again?

      Thanks,
      Dominik

      DevExpress Support Team 7 years ago

        Yes, I was wrong, my apologies. The context string should be:
        [AtEndOfLine] && !([DeclaresLocal(b)] || [InAnyComment] || [InString] || [AppearsToDeclare(b)])

        Answers approved by DevExpress Support

        created 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.

          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.