d-agrawal's blog

By d-agrawal, history, 5 months ago, In English,

Hello All!

A competitive programming extension for VS Code!

I have created an extension for Visual Studio Code that makes testing, creating, and downloading testcases very easy. It is similar to CPPFastOlympicCoding for Sublime. Search within VS Code Extensions or download from link below. Works on Windows, Mac, Linux. You need to have G++ ( GCC ) installed.

Extension Name : Competitive Programming Helper

Store Link : https://marketplace.visualstudio.com/items?itemName=DivyanshuAgrawal.competitive-programming-helper

Features

  • Add multiple testcases.

  • Download from Codeforces automatically.

  • Auto compile and run, shows compilation errors, run-time errors ( stack overflow, seg-faults etc).

  • GUI, no manual file editing.

UI

Please try it out and give feedback. Please report issues/ send feature requests here : https://github.com/agrawal-d/competitive-programming-helper

Thanks!

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

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

Amazing extension! Thanks :)

»
5 months ago, # |
  Vote: I like it +5 Vote: I do not like it

I started few months ago similar tool, you can check it here:

I love the way you display testcases in your tool. Unfortunately I don't have too much time to hack on mine this days, but it would be great if I could incorporate this to my tool, are you ok with that? I see you don't have any LICENSE, so I encourage you to add one.

  • »
    »
    5 months ago, # ^ |
      Vote: I like it +5 Vote: I do not like it

    Your extension is pretty cool! My university examinations are coming soon, so maybe later? And thanks for reminding, I'll add the LICENSE.

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

It does not work well if you have a vim extension like VSCodeVim.

The <esc> key doesn't work when you try to change insert to normal mode if I enable your extension. :/

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

Thanks for such a great tool.

Unfortunately Im still not able to run it in Windows10: the button "Run Testcases" does nothing after pressing it.

I want to use g++ compiler from WSL to avoid install MinGW. Is there a way to configure this as the default option?

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

    Thanks for using it!

    Hmm, I currently don't support changing compiler itself, so you won't be able to use g++ from WSL! :-(

    A bad solution would be to create a global alias for g++ that points to 'wsl g++' but it's not convenient!

    What's the problem with using MinGW or CYGWIN? It takes only a few minutes to install g++ :-)

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

Awesome man!!

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

this extension needs serious upvotes :)

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

    Thank you :-D

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

    If you want to help, you can share this in your own blog/social media/with your friends. :-D

»
3 weeks ago, # |
  Vote: I like it +1 Vote: I do not like it

Hi , Thank You for developing such a good tool Which port should i set for Competitive Companion to work ?

»
3 weeks ago, # |
  Vote: I like it +1 Vote: I do not like it

Not able to download problem and test cases on clicking chrome extension, was working fine few days ago.

»
3 weeks ago, # |
Rev. 8   Vote: I like it +3 Vote: I do not like it

Can I suggest some ideas ? (These may slowdown the test so can you do a Advance Mode for advance setting allowed ?)

1) Add some more verdicts instead of Success and Failed
2) Advance Settings for Each Testcase
3) Advance Settings for All Testcases
4) Advance Settings for codes

Hope your project become success and well-known <3

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

Do you know how we can change it, so it compiles with c++11 or c++14. I am getting a compilation error if I use the syntax for (int i : arr).

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

    Yes, you can add any flags you want from Settings. A GIF shows this in the github link above.

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

thank you so much, this tool is perfect :)

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

Amazing Extension. but Not able to download problem and test cases on clicking Firefox extension. I have used custom port You given on set up video.but still it's not working.

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

    The firefox extension have never worked for me. It seems like the port just isn't updated when set. As I couldn't find the local settings file to edit it by myself, I ended up never using it... Copy-pasting a test into a local file is just a matter of seconds after all, even if I'd rather have it done automatically :)

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

    Thanks! The Competitive Companion broke in the latest VS Code update. I'll fix this ASAP.

»
3 weeks ago, # |
  Vote: I like it +1 Vote: I do not like it

what is Your theme name ?

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

Hi, is there a quick howto, simple starter guide? I installed the extension, but there is literaly no button or anything where I can click. How can I download problems/testcases from codeforces?

I am not an expert with VSC. Where to start?

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

    Hey! The extension github link above has some instructions and a GIF on how to use. If you still don't understand something feel free to direct message me.

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

      is it fixed Now?

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

        Yes, the issue you mentioned was fixed yesterday. Please update the extension, and it should work again.

»
13 days ago, # |
  Vote: I like it 0 Vote: I do not like it

This is an amazing extension. I was wondering if it's possible to open the file with a custom code template while parsing

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

My code is being formatted every time I run test-cases. Is there a way I can stop this?