<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Otávio Murilo | Dev on Medium]]></title>
        <description><![CDATA[Stories by Otávio Murilo | Dev on Medium]]></description>
        <link>https://medium.com/@otaviomurilo.dev?source=rss-dc642795cee0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*De7dx3c9B07N5ohK3X_65w.jpeg</url>
            <title>Stories by Otávio Murilo | Dev on Medium</title>
            <link>https://medium.com/@otaviomurilo.dev?source=rss-dc642795cee0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 12:47:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@otaviomurilo.dev/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why and How to use a code style on our software]]></title>
            <link>https://medium.com/@otaviomurilo.dev/synchronize-code-style-in-jetbrains-intellij-with-saveactions-2f913ae9a105?source=rss-dc642795cee0------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f913ae9a105</guid>
            <category><![CDATA[process]]></category>
            <dc:creator><![CDATA[Otávio Murilo | Dev]]></dc:creator>
            <pubDate>Fri, 21 Jan 2022 17:37:35 GMT</pubDate>
            <atom:updated>2022-01-21T17:41:30.259Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*1LtRM3LO8LWSpgSX_IoMJw.png" /><figcaption>Code style by Otávio Murilo | Dev</figcaption></figure><p>When we are working in a team, in most cases, we need some practices to standardize our code and minimize problems. First, let’s see the bottleneck that a lack of standardized code style in the team can generate.</p><p>In a version control system (VCS) like Git, it’s probably that will highlight modifications in the code that were not changed some business logic, variable names, or any change made by a developer. It will be a change generated by the auto-formatting tools. This kind of problem affects the team productivity when they will analyze a pull request/merge request focusing on the real problem and not on the code style or formatting. The history in a VCS won’t be clear and assertive.</p><p>Another important thing is that we can turn on auto-formatting when saving a file or any options to call this action. With this, the code will always follow the team conventions and look much better and easy to read and understand.</p><p>All code base has particular characteristics. I mean that is similar humans, that anyone has very good points and something that we can pay attention to improve. In medium/large companies the code style helps developers to read other codes and comprehend them faster. This accelerates the maintainability of software and the time to market when fixing bugs.</p><h4>How — Hands-on</h4><p>It’s important to know that these configurations are specific for each IDEA and text editor. I recommend you to search how to do this for the IDEA you are using.</p><p>First let’s turn on auto-save, auto-reformat, and auto-optimize imports when saving files. In IntelliJ, you can go on <em>Settings -&gt; Tools -&gt; Actions on Save</em> and check these three checkboxes. With this, we won’t forget to format our code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C-15CfNVKIOemtVElp-lJA.png" /></figure><p>Then we can configure some properties as an order of declared variables, methods, convention names, based on their properties. In IntelliJ, you can personalize the patterns of code styles without any plugins. Just go at <em>Settings -&gt; Editor -&gt; Code Style</em> and change these conventions based on any language. For this case, I’m showing you some Java arrangement configurations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Z3cI02oP_mtgYpruYiJ6A.png" /></figure><p>Of course, many plugins do a similar thing to us. I recommend taking a look in <a href="https://plugins.jetbrains.com/plugin/7642-save-actions">Save Actions</a> for JetBrains IDEA, <a href="https://prettier.io/">Prettier</a> for many editors.</p><h4>Conclusions</h4><p>For me, the goals of defining a code style on our team help us construct a pattern and improve productivity. If your team decides to define a code style on an existing project, don’t be worried about the size of the first changes on VCS, it will be temporary and the results will appear. I hope this helps you and feel free to contact me if you want.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f913ae9a105" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>