Блог пользователя del_acc

Автор del_acc, история, 5 лет назад, По-английски

GetCode

This is an Sublime Text 3 plugin which:

  1. Takes the URL of a problem such as https://www.codechef.com/problems/INVLIS.
  2. Parses the URL and get the problem code(In this case it is INVLIS).
  3. Creates a new .cpp or .py file with a pre-determined template(cpp.snippets which is customized via settings).

Keyboard shortcuts

For all operating Systems, ctrl+alt+x opens a new dialogue box which takes the problem url as user input

How to install

  1. Install Package Control from here
  2. In Sublime, Open Package Control

Open Package Control from the Preferences Menu

  1. Select Package Control: Install Packages

enter image description here

  1. Now you should be able to search for and install the GetCode Package.

How to use it

After installing, it is necessary to configure the settings(setting the default directory and snippets).

After configuring the settings, ctrl+alt+x opens a new dialogue box which takes the problem url as user input

Supported websites(for now)

  1. Codechef
  2. Codeforces
  3. SPOJ
  4. Virtual Judge
  • Проголосовать: нравится
  • +10
  • Проголосовать: не нравится

»
5 лет назад, # |
  Проголосовать: нравится +11 Проголосовать: не нравится

Can you please elaborate on how it exactly works and what it does?

  • »
    »
    5 лет назад, # ^ |
      Проголосовать: нравится +3 Проголосовать: не нравится

    It takes the problem url and then creates a new cpp file in the specified directory with a template cpp.snippets file. Basically, it is a parser. It helps in quickly creating new files and naming them correctly. You can use ctrl+alt+x to open the url dialog. It can parse url from codechef, codeforces, spoj and virtual judge

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Can it help in submission ,as in once code is complete ,I can submit directly

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Maybe you could also add a test case parser? That would be very useful.

  • »
    »
    5 лет назад, # ^ |
      Проголосовать: нравится +3 Проголосовать: не нравится

    That is in the pipeline. But I am busy right now so I could do it in a month or two