pushpavel's blog

By pushpavel, 3 months ago, In English

The starting part of my competitive programming setup felt just ideal with vscode and its amazing cphelper extension. I remember reading articles like "Setting up your C++ competitive programming environment" that got me up in no time. Later, when I heard about Clion, I understood how much it could offer me. This time around CLion the starting part was not ideal but still okay. But I could not find something as simple and straightforward as cphelper in any of the plugins that I looked and most of their docs were clearly not making my setup any simpler. There was no way I could ignore CLion and its amazing features. So, I had to do something and this plugin is what I did.

Despite making it easier for me to use, I hope to make it as accessible as possible. It would be very helpful if you could let me know of any issues or suggestions on GitHub by opening a new issue and would love feedback by rating or reviewing the plugin. Use Discussions for any questions.

The instructions in this post are outdated, please refer the latest docs

AutoCp

Generate and judge your solution files in Programming Contests. See Docs

Competitive Companion browser extension is required to parse the problems from cp websites

AutoCp helps you

  • Create solution Files using Competitive Companion
  • Build and run any programming language by customizing the build command in Settings/Preferences > AutoCp
  • Test your solutions against sample testcases, or your own testcases
  • Test results are presented in Test Runner UI built in the IDE.

Installation

  • Using JetBrains Marketplace
  • Using IDE built-in plugin system:
    • Settings/Preferences > Plugins > Marketplace > Search for "AutoCp" > Install Plugin
  • Manually:
    • Download the latest release and install it manually using Settings/Preferences > Plugins > settings icon > Install plugin from disk...

Quick Start

  • Generate files by Tools > Gather Problems and parsing the problem or contest using Competitive Companion
  • Write your program
  • Run the file by right-clicking
  • Open View > Tool Windows > AutoCp to open testcase viewer
  • Customize Build commands or add new Programming Languages through Settings / Preferences > AutoCp

Supported IDEs

Android Studio, CLion, DataGrip, JetBrains Gateway, GoLand, IntelliJ IDEA Ultimate, IntelliJ IDEA Community, IntelliJ IDEA Educational, MPS, AppCode, PhpStorm, PyCharm Professional, PyCharm Community, PyCharm Educational, Rider, RubyMine, WebStorm

Screenshot

 
 
 
 
  • Vote: I like it
  • +29
  • Vote: I do not like it

»
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it

mass thala !!!

»
3 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Output Issue with v0.2.0

If someone faces issues with output of your code, It is fixed in v0.2.1 which will go public within two business days in JetBrains marketplace. But, you can install it now manually.

Download the latest release and install it manually using Settings / Preferences > Plugins > settings icon > Install plugin from disk... and selecting the downloaded zip file

Screenshot

»
2 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Why .autocp file appears on every project that I have ?

  • »
    »
    2 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    It is a bug, I am planning to remove .autocp altogether. I hope I will finish it soon. disable Autocp in other projects for now. Thank you

  • »
    »
    7 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    This issue is fixed in v0.5.0-eap.1 which can be installed using this instructions

»
7 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Hello. Today I have installed this plugin, and I'm excited. This is very comfortable to use. But when we creating new task in Clion, we must add file into CmakeLists.txt, else we cannot use some features like highlighting errors in code. Can you add automatic addition files in CmakeLists.txt?