DEMOS - Code Window copy and paste loose \r\n

3 posts, 0 answers
  1. Ken Lassesen
    Ken Lassesen avatar
    37 posts
    Member since:
    Nov 2008

    Posted 16 Jun 2011 Link to this post

    I was just looking at some demos, looked at code and decided to do a copy and paste to Visual Studio 2010.

    I was surprised to see all of the code render onto ONE LINE.

    Using JustCode Reformat -- semi-fixed it... at least until the first comment line... repeated until the code was across.

    It would be nice to have:
    • Copy Code button on the demo page... which keeps the formatting...
    • Have the ability to copy selections while retaining formats.
    Thanks!
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 22 Jun 2011 Link to this post

    Hello Ken,

    Thank you for writing.

    Indeed, your suggestion is quite reasonable. We will consider implementing such functionality in one of our future releases. For the time being you can use the the C# and VB.NET projects, offered with our demo application. The projects allow you see the implementation of the demos and also copy code pieces, without losing their formatting.

    Once again, thank you for your suggestion. Should you have any other questions or feedback, do not hesitate to contact us.
     
    All the best,
    Stefan
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 21 Nov 2011 Link to this post

    Hello Ken,

    I hope you are well.

    I am writing to inform you that in our latest release, we have introduced the "Copy Code" button in our Demo application. So now, you can use this button in order to copy the code from the example and keep its formatting at the same time.
     
    Best wishes,
    Stefan
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

Back to Top