<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Philipp Montesano</title>
    <description>The latest articles on DEV Community by Philipp Montesano (@pixelstuermer).</description>
    <link>https://dev.to/pixelstuermer</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F348906%2Ff88e1a7d-8812-4484-9724-b083b564e6bc.jpeg</url>
      <title>DEV Community: Philipp Montesano</title>
      <link>https://dev.to/pixelstuermer</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pixelstuermer"/>
    <language>en</language>
    <item>
      <title>Useful live template for pull requests in IntelliJ IDEA</title>
      <dc:creator>Philipp Montesano</dc:creator>
      <pubDate>Mon, 31 Jan 2022 17:46:53 +0000</pubDate>
      <link>https://dev.to/pixelstuermer/useful-live-template-for-pull-requests-in-intellij-idea-5ebh</link>
      <guid>https://dev.to/pixelstuermer/useful-live-template-for-pull-requests-in-intellij-idea-5ebh</guid>
      <description>&lt;p&gt;Using the pull requests feature in IntelliJ has dramatically improved my personal workflow when reviewing features. It allows you to use all your developer experience from within the IDE, including things like documentation, all your well-known shortcuts, jumping to implementations, finding usages, viewing parameter info and so on.&lt;/p&gt;

&lt;p&gt;So first of all a big shoutout to the IDEA team.&lt;/p&gt;

&lt;p&gt;It lacks one feature though, which the GitHub UI manages better IMHO: Suggestions. Well IDEA does provide it, in fact, but not so elegant. But it also provides you with live templates: A very powerful feature to insert predefined text snippets into your editor (or wherever you're typing). And mixing both enables you to use suggestions in a more fluent way.&lt;/p&gt;




&lt;p&gt;To enable such a live template for pull request suggestions, first navigate to &lt;em&gt;File &amp;gt; Settings &amp;gt; Editor &amp;gt; Live Templates&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TpzFcNzW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wwmu3l5nz7g07llnlrbx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TpzFcNzW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wwmu3l5nz7g07llnlrbx.png" alt="" width="880" height="309"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then add a new live template, choose a &lt;em&gt;Name&lt;/em&gt;, an &lt;em&gt;Abbreviation&lt;/em&gt; (the abbreviation is the shortcut which you will use in your editor later using &lt;em&gt;CTRL + Space&lt;/em&gt;) and a &lt;em&gt;Description&lt;/em&gt; and add the following to the &lt;em&gt;Template text&lt;/em&gt;:&lt;/p&gt;

&lt;pre&gt;


```suggestion
$CLIPBOARD$
```


&lt;/pre&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TUOJUxkU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0oqpvo8mwll8g67z6shd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TUOJUxkU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0oqpvo8mwll8g67z6shd.png" alt="" width="732" height="216"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Additionally, assign the &lt;code&gt;$CLIPBOARD$&lt;/code&gt; variable with the &lt;code&gt;clipboard()&lt;/code&gt; expression, allowing you to insert the copied text as the suggestion directly.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CTIm3Qft--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dvx8pd4sjhgqirij8r5t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CTIm3Qft--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dvx8pd4sjhgqirij8r5t.png" alt="" width="839" height="246"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You then finally need to enable the live template in &lt;em&gt;Other&lt;/em&gt; texts.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--AWQc0ekp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f1yrk75doog63uys36xl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AWQc0ekp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f1yrk75doog63uys36xl.png" alt="" width="331" height="210"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;You're then ready to use GitHub's pull request suggestions via the code completion (&lt;em&gt;CTRL + Space&lt;/em&gt;) using live templates.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qc8WWXRu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2f8d5cftcjxe7cg7q99w.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qc8WWXRu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2f8d5cftcjxe7cg7q99w.gif" alt="" width="838" height="493"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It gets rendered to the known suggestion within the GitHub UI.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--isgu9kd5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/slf2496vytjmslyib8zh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--isgu9kd5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/slf2496vytjmslyib8zh.png" alt="" width="740" height="173"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>intellij</category>
      <category>idea</category>
      <category>intellijidea</category>
      <category>livetemplates</category>
    </item>
  </channel>
</rss>
