<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IntelliJ Idea &#8211; CodePills.com</title>
	<atom:link href="https://codepills.com/tag/intellij-idea/feed/" rel="self" type="application/rss+xml" />
	<link>https://codepills.com</link>
	<description>Helping you make a better code</description>
	<lastBuildDate>Sat, 23 Mar 2024 08:42:38 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>How to connect Jira with IntelliJ IDEA</title>
		<link>https://codepills.com/how-to-connect-jira-with-intellij-idea/</link>
					<comments>https://codepills.com/how-to-connect-jira-with-intellij-idea/#comments</comments>
		
		<dc:creator><![CDATA[Andrej Buday]]></dc:creator>
		<pubDate>Tue, 09 Mar 2021 14:19:05 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[IntelliJ Idea]]></category>
		<category><![CDATA[Jira]]></category>
		<category><![CDATA[secure token]]></category>
		<guid isPermaLink="false">https://codepills.com/?p=1152</guid>

					<description><![CDATA[This tutorial will show you how to connect your IntelliJ IDEA with the Jira ticketing system. <a href="https://codepills.com/how-to-connect-jira-with-intellij-idea/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>For ease of development, we can connect the IntelliJ IDE with the Jira ticket service.</p>
<p><span id="more-1152"></span></p>
<p>We will need two different components to interconnect IntelliJ with Jira successfully. First, we will need to create an API token in Jira. Consequently, we need to interconnect IntelliJ IDEA with Jira.</p>
<h2>Jira API token creation</h2>
<p>We need to generate the API token in Jira, which will secure communication between IntelliJ and Jira.</p>
<p>1. In Jira, go to your profile and go to the option to change your password. This link should move you to Jira Security Profile at <a title="Jira profile security" href="https://id.atlassian.com/manage-profile/security" target="_blank" rel="nofollow noopener">https://id.atlassian.com/manage-profile/security</a> link.</p>
<p>2. Click on the <i>Create and manage API tokens</i> link from the API token section.</p>
<p><img fetchpriority="high" decoding="async" class="size-full wp-image-1155 aligncenter" src="https://codepills.com/wp-content/uploads/2021/03/jira_security_profile.png" alt="Jira security profile" width="953" height="1012" srcset="https://codepills.com/wp-content/uploads/2021/03/jira_security_profile.png 953w, https://codepills.com/wp-content/uploads/2021/03/jira_security_profile-283x300.png 283w, https://codepills.com/wp-content/uploads/2021/03/jira_security_profile-768x816.png 768w" sizes="(max-width: 953px) 100vw, 953px" /></p>
<p>3. Here at the page <a title="Jira security API tokens page" href="https://id.atlassian.com/manage-profile/security/api-tokens" target="_blank" rel="nofollow noopener">https://id.atlassian.com/manage-profile/security/api-tokens</a> we can create API tokens.</p>
<p><img decoding="async" class="size-full wp-image-1156" src="https://codepills.com/wp-content/uploads/2021/03/jira_api_tokens.png" alt="Jira API tokens page" width="948" height="385" srcset="https://codepills.com/wp-content/uploads/2021/03/jira_api_tokens.png 948w, https://codepills.com/wp-content/uploads/2021/03/jira_api_tokens-300x122.png 300w, https://codepills.com/wp-content/uploads/2021/03/jira_api_tokens-768x312.png 768w" sizes="(max-width: 948px) 100vw, 948px" /></p>
<p>Go to blue <i>Create new token</i> bottom and click it.</p>
<p>4. New pop-up window will show up. Type a rememberable name for the token into the input field.</p>
<p><img decoding="async" class="size-full wp-image-1158 aligncenter" src="https://codepills.com/wp-content/uploads/2021/03/token_for_intellij_name.png" alt="Jita API token for IntelliJ name" width="412" height="274" srcset="https://codepills.com/wp-content/uploads/2021/03/token_for_intellij_name.png 412w, https://codepills.com/wp-content/uploads/2021/03/token_for_intellij_name-300x200.png 300w" sizes="(max-width: 412px) 100vw, 412px" /></p>
<p>Hit <i>Create</i> button. A new API token will be generated (You should also get an email notification). You can see token plaintext when clicking on the icon of an eye in the field.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-1157 aligncenter" src="https://codepills.com/wp-content/uploads/2021/03/new_api_token.png" alt="Jira new API token" width="412" height="276" srcset="https://codepills.com/wp-content/uploads/2021/03/new_api_token.png 412w, https://codepills.com/wp-content/uploads/2021/03/new_api_token-300x201.png 300w" sizes="(max-width: 412px) 100vw, 412px" /></p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-1159 aligncenter" src="https://codepills.com/wp-content/uploads/2021/03/new_token_plaintext.png" alt="New token plaintext" width="411" height="272" srcset="https://codepills.com/wp-content/uploads/2021/03/new_token_plaintext.png 411w, https://codepills.com/wp-content/uploads/2021/03/new_token_plaintext-300x199.png 300w" sizes="(max-width: 411px) 100vw, 411px" /></p>
<p><b>Copy the token to some save location</b>. You will need it later.</p>
<p><b>Be aware that if you close the window, the token will be lost, and it will be not possible to see it again.</b></p>
<p><b>Note</b>: If you made a mistake and want to display the token again, it is not possible. Instead, you need to create a new token and go through the procedure of the new token generation again.</p>
<p>Remove the invalid token from the token list by clicking on <i>Revoke</i> bottom for individual token.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-1153 aligncenter" src="https://codepills.com/wp-content/uploads/2021/03/revoke_api_token.png" alt="Revoke API token" width="412" height="225" srcset="https://codepills.com/wp-content/uploads/2021/03/revoke_api_token.png 412w, https://codepills.com/wp-content/uploads/2021/03/revoke_api_token-300x164.png 300w" sizes="(max-width: 412px) 100vw, 412px" /></p>
<p>Revoke API token pop-up window will close, and after successful removal, a new pop-up Notification will show in Jira to display successful removal.</p>
<h2>Connecting IntelliJ IDEA with Jira</h2>
<p>1. Open your desired project in <strong>IntelliJ IDEA</strong>.</p>
<p>2. Go to IntelliJ IDEA settings (<i>Ctrl</i> + <i>Alt</i> + <i>S</i>) and under <i>Tools</i> &gt; <i>Task</i> &gt; <i>Servers</i> add new Jira configuration. New Jira configuration is possible to add by hitting a <b>+</b> (plus sign) in the bottom left corner of Configurated servers list. Select <strong>JIRA</strong> option.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-1160 aligncenter" src="https://codepills.com/wp-content/uploads/2021/03/adding_jira_in_intellij.png" alt="Adding Jira in Intellij" width="220" height="462" srcset="https://codepills.com/wp-content/uploads/2021/03/adding_jira_in_intellij.png 220w, https://codepills.com/wp-content/uploads/2021/03/adding_jira_in_intellij-143x300.png 143w" sizes="(max-width: 220px) 100vw, 220px" /></p>
<p>3. Add the following information to the Jira server settings:</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-1161" src="https://codepills.com/wp-content/uploads/2021/03/intellij_jira_integration.png" alt="Intellij Jira integration" width="998" height="722" srcset="https://codepills.com/wp-content/uploads/2021/03/intellij_jira_integration.png 998w, https://codepills.com/wp-content/uploads/2021/03/intellij_jira_integration-300x217.png 300w, https://codepills.com/wp-content/uploads/2021/03/intellij_jira_integration-768x556.png 768w" sizes="(max-width: 998px) 100vw, 998px" /></p>
<p><b>Server URL</b> &#8211; URL of your Jira</p>
<p><b>Email</b> &#8211; Add your Jira account email</p>
<p><b>API token</b> &#8211; Provide API token generated in Jira.</p>
<p><b>Search</b> &#8211; <code>assignee = currentUser() and project = XXXX and resolution = Unresolved order by updated.</code></p>
<p>The code in the search input field will give you your most recent task assigned to you at the top of the menu.</p>
<p><b>Test</b> your connection with Jira with the <i>Test</i> button.</p>
<p>If your connection to the Jira server was successful hit <b>Apply</b> and <b>OK</b> and close the <i>Settings</i> window. Now you can go into the right corner of the IntelliJ window, and you should see a drop-down menu showing you all connected tasks with Jira.</p>
<h2>Checking out a new task</h2>
<p>When checking out a new task, we can create immediately a new branch on which the task will be built.</p>
<p>Go to section Tasks and set up the settings according to the image below.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-1154" src="https://codepills.com/wp-content/uploads/2021/03/intellij_tasks_option.png" alt="IntelliJ IDEA tasks option" width="1000" height="720" srcset="https://codepills.com/wp-content/uploads/2021/03/intellij_tasks_option.png 1000w, https://codepills.com/wp-content/uploads/2021/03/intellij_tasks_option-300x216.png 300w, https://codepills.com/wp-content/uploads/2021/03/intellij_tasks_option-768x553.png 768w" sizes="(max-width: 1000px) 100vw, 1000px" /></p>
<p>Changelist name format: <code>${id} ${summary}</code></p>
<p>Feature branch name format: <code>feature/${id} ${summary}</code></p>
<p>Settings like the picture above will secure that a new feature branch will be created when we check out a new task in the IntelliJ IDEA window.</p>
<h2>Conclusion</h2>
<p>In this short tutorial, we followed the steps to interconnect IntelliJ IDEA with your Jira account. One of the most critical parts is to keep the Jira API token. If you consider using them in other projects, keep the token in a separate secured file. Otherwise, do not be afraid to revoke tokens, if necessary, and create a new one.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codepills.com/how-to-connect-jira-with-intellij-idea/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>3 ways how to kill Spring Boot application at port 8080 on Windows</title>
		<link>https://codepills.com/3-ways-how-to-kill-spring-boot-application-at-port-8080-on-windows/</link>
					<comments>https://codepills.com/3-ways-how-to-kill-spring-boot-application-at-port-8080-on-windows/#respond</comments>
		
		<dc:creator><![CDATA[Andrej Buday]]></dc:creator>
		<pubDate>Wed, 03 Feb 2021 17:47:12 +0000</pubDate>
				<category><![CDATA[Bug hunt]]></category>
		<category><![CDATA[cmd]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[IntelliJ Idea]]></category>
		<category><![CDATA[PID]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[process ID]]></category>
		<category><![CDATA[server container]]></category>
		<category><![CDATA[servlet]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[Spring Boot]]></category>
		<category><![CDATA[Spring Boot application]]></category>
		<category><![CDATA[Spring development]]></category>
		<category><![CDATA[terminal]]></category>
		<guid isPermaLink="false">https://codepills.com/?p=1132</guid>

					<description><![CDATA[This article is a simple tutorial on how to kill your Spring Boot application which occupies port 8080 on Windows <a href="https://codepills.com/3-ways-how-to-kill-spring-boot-application-at-port-8080-on-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>This article tries to answer one of the most often occurred questions connected with Spring Boot development. When developing a web application with Spring Boot, you might hit an error announcing that port 8080 is occupied. In this article, we will see why and how to solve this error. However, be sure that tutorial can help you solve the occupancy of any other port.</p>
<p><span id="more-1132"></span></p>
<h2>Spring Boot application default port</h2>
<p>When you develop long enough with Spring Boot, you know the error very well. You work on your Spring Boot application, and you use a console for running the application. Or you use your favourite IDE runner for starting your application (my preferred IDE is IntelliJ IDEA). Your Spring Boot application in the running embedded in servlet container when suddenly you need to do something else. Instead of adequately terminating the embedded servlet container with your application, you detach from the servlet by a closing terminal window or switching to a different project in IDE. However, because you did not correctly terminate your IDE runner and did not correctly kill the terminal&#8217;s application process, the servlet with the application is still running. After that, you might, of course, start developing something else. Surprise, surprise, you cannot. Any Spring Boot application port, by default number 8080, is still occupied with the unterminated process of your Spring Boot servlet container. (In the tutorial, we assume you are using the Spring Boot application port on default port number 8080).</p>
<p>I guess you might be a little bit confused by all the wording describing the issue. Let&#8217;s take a look first at some terminology to understand the problem here fully:</p>
<h3>What is process?</h3>
<p>We are aware that readers of this blog are pretty skilled in computers. So, we will provide a brief description of what is computer process without going to further details.</p>
<p>Every time you start a program on your computer, it requires a certain amount of resource. Your Central Processor Unit, known as CPU, add to this program its process.</p>
<p>If you open task manager on your Windows, you will see a list of all process your CPU is trying to manage at once.</p>
<h3>What is process ID?</h3>
<p>The process ID, also known as PID, is the number assigned by the operating system to each new process.</p>
<h3>What is port number?</h3>
<p>A port number is how to identify individual processes for network message when they arrive on a server. In a real sense, a port number is the logical address of each application or process that helps identify the sender and receiver of processed messages. </p>
<p>You can imagine port numbers as doors in the hallway into which message flows through the networks. It leaves one door and enters another.</p>
<h3>What is Spring Boot server container?</h3>
<p>Spring Boot is a Spring project which makes Spring development fast. Without going too much into the Spring Boot project details, your Spring Boot application runs in a server container, better known as a servlet. This servlet runs in one computer process and lister on port 8080 for traffic.</p>
<h2>Restart computer</h2>
<p>One way how to solve this is to restart your computer. During the restart of Windows OS, start all the fresh, and port 8080 will be empty. But this is not the fastest and definitely not the right way for developers to solve this.</p>
<h2>Set different port number</h2>
<p>Another way is to solve this issue by assigning the Spring Boot application a different port number. When we set a different port number for the application, we will not kill the existing process with the application servlet container. However, we will create a new-different process for the servlet container, which will be listening on a different port. In this way, port 8080 will be still occupied, but we will at least be able to continue to develop.</p>
<p>Go to Spring Boot <code>application.properties</code> file and set different port number for <code>server.port</code> .</p>
<p>Despite this quick workaround, there is a much more mature way to solve this problem. I would like you to show a better way to kill a Spring Boot servlet container listening on port 8080.</p>
<h2>Kill the process listening at port 8080</h2>
<p>To kill the process listening at port 8080 in the Windows environment, we need only go through a few steps. First, check the image below to get the idea.</p>
<p><img loading="lazy" decoding="async" src="https://codepills.com/wp-content/uploads/2021/02/kill_process_at_port_8080_on_the_windows_10.png" alt="How to kill process listening at port_8080 on the Windows 10" width="623" height="198" class="size-full wp-image-1133" srcset="https://codepills.com/wp-content/uploads/2021/02/kill_process_at_port_8080_on_the_windows_10.png 623w, https://codepills.com/wp-content/uploads/2021/02/kill_process_at_port_8080_on_the_windows_10-300x95.png 300w" sizes="(max-width: 623px) 100vw, 623px" /></p>
<h3>Find the process occupying port 8080</h3>
<p>On the Windows, open your CMD terminal. With simple command <code>netstat  -ano  |  findstr  PORT_NUMBER</code>, where for PORT_NUMBER add port number 8080, and on command prompt output (hit enter), we will get the <b>process id</b> of process <strong>listening on port 8080</strong>.</p>
<h3>Kill the process with command prompt</h3>
<p>Now, all we need to do is just type the following command <code>taskkill  /F  /PID  PROCESS_ID</code> and replace PROCESS_ID by the <b>process id</b> we got from the previous command result.</p>
<p>If you have typed everything correctly, process listening on port 8080 should be terminated.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codepills.com/3-ways-how-to-kill-spring-boot-application-at-port-8080-on-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to remotely debug Java application in IntelliJ</title>
		<link>https://codepills.com/how-to-remotely-debug-java-application-in-intellij/</link>
					<comments>https://codepills.com/how-to-remotely-debug-java-application-in-intellij/#respond</comments>
		
		<dc:creator><![CDATA[Andrej Buday]]></dc:creator>
		<pubDate>Mon, 01 Feb 2021 20:52:52 +0000</pubDate>
				<category><![CDATA[Tips & tricks]]></category>
		<category><![CDATA[bytecode]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[IntelliJ Idea]]></category>
		<category><![CDATA[JAR]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[maven build]]></category>
		<category><![CDATA[monolith]]></category>
		<category><![CDATA[port exhaustion]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[session exhaustion]]></category>
		<category><![CDATA[Slack]]></category>
		<category><![CDATA[stack]]></category>
		<category><![CDATA[war]]></category>
		<guid isPermaLink="false">https://codepills.com/?p=1122</guid>

					<description><![CDATA[This article is a simple tutorial on how to debug your JAR or WAR file remotely. <a href="https://codepills.com/how-to-remotely-debug-java-application-in-intellij/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>This tutorial will show you how to debug your JAR or WAR file in IntelliJ IDEA remotely and give hints on developing new features through the application stack.</p>
<p><span id="more-1122"></span></p>
<h2>Prerequisites</h2>
<p>Let me give you some essential tips for prerequisites to get successful and smooth remote debugging.</p>
<h3>Debug same version as on the remote server</h3>
<p>To debug a remote server-side application in your IntelliJ IDEA, you need to have the same version of your application or component on your side in IntelliJ IDEA as on the server-side. To do so, you shall first finish all the changes you want to test on the remote server. Then build your application and deploy it to the remote server. Only then you should run remote debug mode against your remote environment.</p>
<p>In reverse, if you can not change what is on the server, rebase your code repository on the commit of the JAR or WAR file set on the server. Then, build the application with the build tool of your choice (Maven/Gradle), and only then can you remotely debug.</p>
<h3>Don&#8217;t make any additional changes before remote debug</h3>
<p>Writing the following note might be unnecessary, yet it is better to say it aloud as a reminder. If you make any changes in your code between deployment on the remote server and running the application in remote debug mode, remote debug will not work. Even on the slightest change, remote debug will not decompile your breakpoint on the desired code line because Java bytecode will be different.</p>
<h3>Build faster without tests</h3>
<p>Just a tip &#8211; for a fast Maven build you can use <code>mvn clean install -DskipTests</code>.</p>
<p>For more information regarding running a Maven build without tests, check the article about <a href="https://codepills.com/how-to-build-with-maven-without-running-tests/" title="How to build with Maven without running tests" target="_blank" rel="noopener">how to build Java application with Maven without running tests</a>.</p>
<h3>Coordination your work with the rest of the team</h3>
<p>If you are working in a team and want to be a good team player (or working on something very sensitive), let your teammates know you want to deploy and remotely debug your application. First, ask your colleagues, e.g. in Slack publicly, if it is OK to occupy test instance for a while. Then, coordinate your debugging according to the response or your organization&#8217;s policy. For example, let&#8217;s say you are clear to go if nobody responds in 15 minutes.</p>
<h3>Adjustment of other parts</h3>
<p>For more complex changes through the stack, changing and adjusting different system parts might be necessary. E.g., if you are working on the monolith, you might need to adjust the front-end client for testing purposes. In other cases, it might be necessary to change the database.</p>
<p>Adjusting other parts of the system might be necessary for the system to work and for you to be able to test changes through the whole stack.</p>
<p>In every case, do not forget to clean after yourself when leaving (check the last point of this tutorial for more info).</p>
<h2>1. In IntelliJ IDEA, create new Run/Debug Configuration for Remote JVM Debug</h2>
<p><img loading="lazy" decoding="async" src="https://codepills.com/wp-content/uploads/2021/02/remote_debug_in_intellij_idea.png" alt="Remote Debug in IntelliJ IDEA" width="752" height="745" class="size-full wp-image-1123" /><br />
<i style="text-align: center;">Example of setup in IntelliJ IDEA</i></p>
<p>You can change host and port configurations based on the remote environment you want to debug.</p>
<p>If using a multi-module project, select a module in <code>Use module classpath</code>.</p>
<h2>2. Run remote debug configuration in debug mode</h2>
<p>Connecting to the host should be nearly instant. So now, all you need to do is place the <strong>breakpoints</strong> in your code.</p>
<p>Then, when the application code executes in a connected environment, the line you set as the breakpoint should be reached, and IntelliJ IDEA will show you the stack trace. That is it, simple as that.</p>
<h2>3. Do not forget to close your debug session</h2>
<p>Do not forget to close your debug session. Unclosed sessions cause port/socket exhaustion and lead to server restart. Also, try not to keep the session open and be stuck on the breakpoint for too long. <i>TimeOutException</i> and other exceptions might occur which will lead to further server resource consumption.</p>
<h2>4. Clean up</h2>
<p>After successful testing, returning the testing environment to its original state might be necessary. For example, build your current master/develop branch and place it back in the test environment. Then, if your colleagues do not notice that the testing environment does not work as it should, you did a good job cleaning after yourself and placing the project back in a stable state.</p>
<p>If you are on your own, I highly recommend cleaning after yourself too. You will never know when you will need to return to your projects again, and you might not remember why the testing environment is in a different state at that time.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codepills.com/how-to-remotely-debug-java-application-in-intellij/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to use IntelliJ Idea as a text editor</title>
		<link>https://codepills.com/how-to-use-intellij-idea-as-a-text-editor/</link>
					<comments>https://codepills.com/how-to-use-intellij-idea-as-a-text-editor/#respond</comments>
		
		<dc:creator><![CDATA[Andrej Buday]]></dc:creator>
		<pubDate>Fri, 01 Jan 2021 15:25:33 +0000</pubDate>
				<category><![CDATA[Tips & tricks]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[Grammarly]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[IntelliJ Idea]]></category>
		<category><![CDATA[IntelliJ Idea IDE]]></category>
		<category><![CDATA[Microsoft Word]]></category>
		<category><![CDATA[text editor]]></category>
		<category><![CDATA[word processor]]></category>
		<guid isPermaLink="false">https://codepills.com/?p=1104</guid>

					<description><![CDATA[This article will give you a few excellent tips on how and why to turn your favourite IDE into your first choice text editor. <a href="https://codepills.com/how-to-use-intellij-idea-as-a-text-editor/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>I have recently started to use IntelliJ Idea as my text editor and integrated it into my creative process.</p>
<p><span id="more-1104"></span></p>
<p>As I am a software developer, IntelliJ IDE is, for me, a must. IDE is in front of me opened all the time. Therefore it is a chance for me to write a lot of content in the IDE.  It is a better choice to use IDE instead of switching to another text editor or using another means of word processing.</p>
<p>Since I am also aiming to work on several articles or documents simultaneously, every decrease in ambiguity and complexity counts towards faster results. The creative process is not possible to automatize. But what it is possible to automatize are redundant tasks during text handling and editing.</p>
<h2>Why turn IntelliJ Idea IDE into your word processor?</h2>
<p>First of all, IntelliJ Idea IDE already comes in its 2020 version with very, very good support for English vocabulary. So writing in English in IDE was never easier than now.</p>
<p>Plus, when implementing the advantage of multiple IntelliJ shortcuts, the word processing is swift. Especially if you write your text in .html, .adoc or .md format.</p>
<p>Overall, IntelliJ IDE comes in all versions with Git support, which is an additional advantage against traditional word processors. You can easily version your articles&#8217; state and keep a history of your edits in one place. Article versioning is a feature that is available only in very advanced mode in cloud SaaS.</p>
<p>However, what I have found very tedious was text formatting in IntelliJ. As expected, I was using IntelliJ Idea IDE for coding, mostly Java, and thus the text was supposed to be wrapped automatically after 120 characters. When I then copied my articles to other word processors in my pipelines, such as Microsoft Word or Grammarly, I always needed painfully deleted every single break line to make a single continuous line of text. That was also one of the most common mistakes I had after publishing articles through WordPress  &#8211; linebreaks were always in places where they should not be.</p>
<p>After enough time spent doing this pointless work, fixing many wrong break lines, I have decided to end it and figure out how to speed up the process. Because every second I spend editing an article is second, I could use it towards another article&#8217;s creative process.</p>
<h2>How to turn IntelliJ Idea into text editor?</h2>
<p>First of all, go to <i>Settings</i> > <i>Editor</i> > <i>General</i> and check all checkboxes in Soft Wraps section.</p>
<p><img loading="lazy" decoding="async" src="https://codepills.com/wp-content/uploads/2021/01/intellij_soft-wrap_checkboxes_in_general_editor_settings.png" alt="IntelliJ soft-wrap checkboxes_in_general editor settings" width="692" height="361" class="size-full wp-image-1106" srcset="https://codepills.com/wp-content/uploads/2021/01/intellij_soft-wrap_checkboxes_in_general_editor_settings.png 692w, https://codepills.com/wp-content/uploads/2021/01/intellij_soft-wrap_checkboxes_in_general_editor_settings-300x157.png 300w" sizes="(max-width: 692px) 100vw, 692px" /></p>
<p>Then go to <i>Settings</i> > <i>Code Style</i> and select Scheme Project. Here unselect the checkbox &#8220;Wrap on typing&#8221;.</p>
<p><img loading="lazy" decoding="async" src="https://codepills.com/wp-content/uploads/2021/01/intellij_soft-wrap_editor_code_style.png" alt="IntelliJ soft-wrap editor code style" width="807" height="422" class="size-full wp-image-1105" srcset="https://codepills.com/wp-content/uploads/2021/01/intellij_soft-wrap_editor_code_style.png 807w, https://codepills.com/wp-content/uploads/2021/01/intellij_soft-wrap_editor_code_style-300x157.png 300w, https://codepills.com/wp-content/uploads/2021/01/intellij_soft-wrap_editor_code_style-768x402.png 768w" sizes="(max-width: 807px) 100vw, 807px" /></p>
<p>I would recommend this change be saved under the current project scheme, not under the IDE scheme. If you are using the same IntelliJ for coding, wrapping will conflict with your code clarity if you save the change under the IDE scheme.</p>
<p>Hit Apply button to apply all the changes.</p>
<h3>Initialize soft-wrap in IntelliJ code editor</h3>
<p>In the active editor tab, on the left side of the text line panel, after the right-click, there is an option <code>soft-wrap</code> to initiate the wrapping. Soft-wrap is not initialized automatically on every new file open. Therefore you will need to initialize soft-wrap on every new file open.</p>
<h3>Tip for shortcut</h3>
<p>When you open a new file, the text is, by default, unwrapped. You can either right-click on the newly opened line meter on the left side and hit <code>Soft-Wrap</code> from the menu option. Or you can set up a special shortcut for soft-wrapping, while the shortcut is not set by default.</p>
<p><img loading="lazy" decoding="async" src="https://codepills.com/wp-content/uploads/2021/01/intellij_soft-wrap_custom_shortcut.png" alt="IntelliJ soft-wrap - custom shortcut" width="645" height="395" class="size-full wp-image-1107" srcset="https://codepills.com/wp-content/uploads/2021/01/intellij_soft-wrap_custom_shortcut.png 645w, https://codepills.com/wp-content/uploads/2021/01/intellij_soft-wrap_custom_shortcut-300x184.png 300w" sizes="(max-width: 645px) 100vw, 645px" /></p>
<p>To set up your shortcut, go to <i>File</i> > <i>Settings</i> > <i>Keymap</i> and search for &#8220;Soft-Wrap&#8221; in <i>Main Menu</i> > <i>View</i> > <i>Active Editor</i>. Add to action key shortcut. I personally use Alt + P key shortcut. That is not a conflicting key shortcut with keys combinations easy to remember.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codepills.com/how-to-use-intellij-idea-as-a-text-editor/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Solution for Lombok plugin incompatible with 2018.1 Intellij Idea warning</title>
		<link>https://codepills.com/solution-for-lombok-plugin-incompatible-with-2018-1-intellij-idea-warning/</link>
					<comments>https://codepills.com/solution-for-lombok-plugin-incompatible-with-2018-1-intellij-idea-warning/#respond</comments>
		
		<dc:creator><![CDATA[Andrej Buday]]></dc:creator>
		<pubDate>Sun, 22 Apr 2018 10:24:33 +0000</pubDate>
				<category><![CDATA[IDE]]></category>
		<category><![CDATA[dependency issue]]></category>
		<category><![CDATA[IntelliJ Idea]]></category>
		<category><![CDATA[Lombok]]></category>
		<category><![CDATA[warning]]></category>
		<guid isPermaLink="false">http://codepills.com/?p=922</guid>

					<description><![CDATA[Migrating from the older to the newest version of IntelliJ Idea can cause a warning message for the Lombok module. This article is about a simple solution how to solve this problem. <a href="https://codepills.com/solution-for-lombok-plugin-incompatible-with-2018-1-intellij-idea-warning/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>Migrating from the older to the newest version of IntelliJ Idea can cause a warning message for the Lombok module.</p>
<p><span id="more-922"></span></p>
<p>The result of the problem is the red underling of all lines using Lombok functionality. The warning occurs after IntelliJ start-up on the button right side and looks like this:</p>
<blockquote><p>Lombok plugin incompatible with 2018.1 Intellij Idea</p></blockquote>
<p>A solution to this problem is straightforward. Just follow the instructions below:</p>
<p>1. Open settings and select plugin options.<br />
2. Search or select the Lombok plugin, right-click and reload the list of plugins.<br />
3. Then there will be <code>Update</code> button instead of <code>Uninstall</code>button. Press the <code>Update</code> button.<br />
4. After re-installation of the plugin, restart IntelliJ Idea for updating its internal dependencies. That is it.</p>
<p><img loading="lazy" decoding="async" class="wp-image-923 size-full" src="https://codepills.com/wp-content/uploads/2018/04/intellij_2018_1-fixing_lombok.png" alt="Intellij 2018 1 - fixing Lombok" width="856" height="604" srcset="https://codepills.com/wp-content/uploads/2018/04/intellij_2018_1-fixing_lombok.png 856w, https://codepills.com/wp-content/uploads/2018/04/intellij_2018_1-fixing_lombok-300x212.png 300w, https://codepills.com/wp-content/uploads/2018/04/intellij_2018_1-fixing_lombok-768x542.png 768w" sizes="(max-width: 856px) 100vw, 856px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://codepills.com/solution-for-lombok-plugin-incompatible-with-2018-1-intellij-idea-warning/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
