fmoraes's blog

By fmoraes, history, 8 years ago, In English

I am pleased to announce the initial release of EclipseForces, a plugin for Eclipse for competing on Codeforces contests.

I have been using it for some time and I feel like it is finally ready for general usage by others. The initial release supports the following features:

  • automatically parse the contest problems and generate stubs for each problem including JUnit test cases for provided samples
  • automatically parse timeout, memory limit, modulo and relative error
  • support for code templates, so you can customize the look and feel of the generated code
  • easily add new testcases by using Ctrl+6 (customizable)
  • plugin support for adding additional programming languages (Java supported by the plugin)

Installing

To install, download the plugin from the Github releases page: https://github.com/fmoraes74/eclipseforces/releases and place it inside the Eclipse plugins directory and restart Eclipse.

Using

To use it, add the EclipseForces views to your preferred perspectives by using the Window->Show View->Other... and adding the Contest List and Problem Statement views.

To solve problems from a contest, find the contest in the Contest List view (select one of the options in the view menu to refresh) and double-click the desired contest. An Eclipse project will be created with the template class for each problem and accompanying JUnit testcases. You can customize the code template via the preferences for the plugin.

Supported template variables

There are four supported template variables that can be used in the generated code template. They are defined by surrounding the keywords below with dollar sign (couldn't figure out how to properly show it in the blog output):

  • CLASSNAME — name of the class being generated
  • CONTEST — name of the contest for the problem
  • MODULO — variable with any parsed modulo or blank if none. This will define a fully self contained statement for the generated language
  • NAME — name of the problem

Support

If you find any issues with the plugin, please report it via the Issues page on the Github project.

I hope you enjoy it.

Full text and comments »

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