<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Pretty printer for Modified code only in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322036#M4869</link>
    <description>&lt;P&gt;In a semi-perfect world, all code would look the same.&lt;/P&gt;&lt;P&gt;In a perfect world, all code would always look as how the respective reader would like to see it or tends to understand it best.&lt;/P&gt;&lt;P&gt;In reality there are code styling conventions which do not align with the hard coded (?) pretty printer. And in exactly those cases it makes sense to not de-prettify your old code only because of some new code.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2022 09:01:37 GMT</pubDate>
    <dc:creator>su01</dc:creator>
    <dc:date>2022-09-02T09:01:37Z</dc:date>
    <item>
      <title>Pretty printer for Modified code only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322026#M4859</link>
      <description>&lt;P&gt;It's generally not a good practice to use pretty printer on existing code. However, it would be really nice if Pretty printer can be used and only new/modified code is formatted. Old code remains as it is. Is there a way to do so?&lt;/P&gt;&lt;P&gt;I tried to search for such an SAP note before asking the question here. Could not find any helpful note.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 10:23:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322026#M4859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-19T10:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Pretty printer for Modified code only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322027#M4860</link>
      <description>&lt;P&gt;Gaurav,&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;It's generally not a good practice to use pretty printer on existing code&lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;It is indeed a good practice to use Pretty printer irrespective of whether it is a  new code or existing code.If a developer hasn't used it previously then we need to set it right by using it now.If you are worrying about the version management differences then you can check "ignore upper/lower case" checkbox in the comparision options of version management.Pretty printer is a nice feature whose usage should be encouraged and not skipped.&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 10:34:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322027#M4860</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2016-12-19T10:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Pretty printer for Modified code only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322028#M4861</link>
      <description>&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;I am aware of ignoring cases and indentations. What if that is not an option?&lt;/P&gt;&lt;P&gt;Is there a way to make sure that pretty printer works only for the newly added code? Not looking for any work around. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GK&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 10:47:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322028#M4861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-19T10:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pretty printer for Modified code only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322029#M4862</link>
      <description>&lt;P&gt;No. You have two ways of pretty printer: the classic "pretty printer" button (whole code), and context menu in the dynpro-based ABAP editor "Format selection" to pretty print the selected text, but this is different from the classic pretty printer, with no formatting option. I don't know whether there are other options in Eclipse.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 16:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322029#M4862</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-12-19T16:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pretty printer for Modified code only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322030#M4863</link>
      <description>&lt;P&gt;It isn't an option to just pretty print your modified part. Within eclipse you may be able to write an extension which will be able to do so, but I think that is a very high effort for such a small use case.&lt;/P&gt;&lt;P&gt;Sorry, but the short answer is "no" &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;~Florian&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 19:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322030#M4863</guid>
      <dc:creator>Florian</dc:creator>
      <dc:date>2016-12-19T19:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pretty printer for Modified code only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322031#M4864</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I know you said no work  around, but as you already know by now - that's the only choice you've got &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So I would suggest writing your code on some local object ZTEST kind of program and format your code there and then copy and paste it back to where you need to be.&lt;/P&gt;&lt;P&gt;Another option is to write your code in a method/subroutine/function that is in a separate include (of which you can pretty format) thus reducing your code to a single line in the altered code.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 21:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322031#M4864</guid>
      <dc:creator>iftah_peretz</dc:creator>
      <dc:date>2016-12-19T21:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Pretty printer for Modified code only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322032#M4865</link>
      <description>&lt;P&gt;If it only worked on new/modified code then it wouldn't be very pretty IMHO.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 21:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322032#M4865</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2016-12-19T21:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pretty printer for Modified code only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322033#M4866</link>
      <description>&lt;P&gt;Hello Gaurav,&lt;/P&gt;&lt;P&gt;Actually there is an option in Eclipse - &lt;EM&gt;Format Block(Ctrl+Shift+F1)&lt;/EM&gt; which you can use to format the selected text.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/12275-unformatted-code.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/12276-format-block.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/12277-fomatted-code.jpg" /&gt;&lt;/P&gt;&lt;P&gt;I am not sure if this is what you are looking for?&lt;/P&gt;&lt;P&gt;@Sandra:  &lt;/P&gt;&lt;P&gt;&lt;EM&gt;"context menu in the dynpro-based ABAP editor "Format selection" to pretty print the selected text"&lt;/EM&gt; - Tbh, i did not know such a feature existed in the GUI Editor. &lt;/P&gt;&lt;P&gt;"&lt;I&gt;but this is different from the classic pretty printer, with no formatting option&lt;/I&gt;" - What do you mean by this? Screenshots, maybe &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 11:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322033#M4866</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2016-12-22T11:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pretty printer for Modified code only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322034#M4867</link>
      <description>&lt;P&gt;IMHO Pretty Printer doesn't make code pretty......Indents should be to next word!  &amp;lt;grrr&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 15:13:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322034#M4867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-22T15:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Pretty printer for Modified code only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322035#M4868</link>
      <description>&lt;P&gt;No you don't.  &lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 15:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322035#M4868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-22T15:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pretty printer for Modified code only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322036#M4869</link>
      <description>&lt;P&gt;In a semi-perfect world, all code would look the same.&lt;/P&gt;&lt;P&gt;In a perfect world, all code would always look as how the respective reader would like to see it or tends to understand it best.&lt;/P&gt;&lt;P&gt;In reality there are code styling conventions which do not align with the hard coded (?) pretty printer. And in exactly those cases it makes sense to not de-prettify your old code only because of some new code.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 09:01:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pretty-printer-for-modified-code-only/m-p/322036#M4869</guid>
      <dc:creator>su01</dc:creator>
      <dc:date>2022-09-02T09:01:37Z</dc:date>
    </item>
  </channel>
</rss>

