This is a follow-up to my previous article, where I convince you to try Kotlin for Competitive Programming. But if you’re already convinced, then this article is for you! It is a step-by-step guide for setting up your local environment.

What we are aiming for

Your local workflow should help you achieve a few different things:

  1. A consistent process for starting a new contest, and for creating new solution files.
  2. Quick access to repetitive code that is necessary for reading input and writing output in every problem
  3. Access to tools like the Intellisense, a Read-Eval-Print Loop (REPL), and a debugging interface.

The following setup ensures all of these things for you.

Setup: Step-by-Step Guide

Step 1

Download and install IntelliJ IDEA (Community Edition will do) on your system.

Step 2

Download the latest version of the kotlin-cp.zip file from this GitHub Releases page.

Image for post

Step 3

Launch the IDE, and go to File -> Import Settings.

Image for post

Import the settings file you downloaded in Step 2.

Image for post

Click OK.

Image for post

Restart Intellij IDEA.

Image for post

#leetcode #workflow #ux #programming #kotlin

Setting up Your Workflow for Competitive Programming in Kotlin
1.65 GEEK