000golabi's blog

By 000golabi, 6 years ago, In English,

hi !

it is a plugin for c++ programmers ! generates source .cpp files for codeforces problems with test cases !

added in version 2 : you can add your own code template (as requested !)

i just tested with visual studio 2012 ,and visual studio 2013 preview i don't know if it works with 2010 or not !

download 'codeforces vs plugin 2.zip' from my skydrive public folder :

https://skydrive.live.com/?cid=04987FA06FF8DD8B&id=4987FA06FF8DD8B%21105

copy 'codeforces_vs_addin.AddIn' and 'codeforces_vs_addin.dll' to :

C:\Users\CURRENT_USER\Documents\Visual Studio 2012\Addins => for visual studio 2012

C:\Users\CURRENT_USER\Documents\Visual Studio 2012\Addins => for visual studio 2013

(CURRENT_USER == your windows account) (note : if the 'Addins' folder dos not exits , create it yourself !) and done !

codeforces plugin is accessable from => options->codeforces_vs_addin

i included photographic tutorial in 'codeforces vs plugin 2.zip'

source : https://github.com/keramer/codeforces-visual-studio-plugin have fun !

edit 2.1: version 2.01 from dear mitstudent ( fix some problems for some users ) :)

http://www.putlocker.com/file/75544024710505A3

edit 3: version 3.0 , download codeforces addin 3.zip from https://skydrive.live.com/?cid=04987FA06FF8DD8B&id=4987FA06FF8DD8B!105 i used #define ONLINE_JUDGE instead of testing=false variable . and fixed code template problem for visual studio 2013 ( works for me now ! )

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

»
6 years ago, # |
  Vote: I like it +13 Vote: I do not like it

new version is available :

download 'codeforces vs plugin 2.zip' from https://skydrive.live.com/?cid=04987FA06FF8DD8B&id=4987FA06FF8DD8B%21105

now you can add your own code template !

have fun !

  • »
    »
    6 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    i can't find the code template option.

    • »
      »
      »
      6 years ago, # ^ |
      Rev. 3   Vote: I like it 0 Vote: I do not like it

      1- are you sure you downloaded the version 2 of the plugin ?

      2-the photographic tutorial is outdated( version 1 ) . if you install the plugin there should be two green buttons : '**change your code template**' and 'restore default template!' if you click on the first button a blank text file would be opened by your default text editor ( notepad ) , edit this file and write your own code template :)

      • »
        »
        »
        »
        6 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        Thanks a lot for the plugin.

        I am facing the same problem with the template option. I am using Visual Studio 2013 64-bit. I have downloaded the latest version from the link you provided https://skydrive.live.com/?cid=04987FA06FF8DD8B&id=4987FA06FF8DD8B%21105.

        I have checked the source and found out that the buttons should be easily found right at the top of the bar — unfortunately the dll you provided in the link didn't have these buttons, at least with my VS version. Any idea why?

»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it

reminder : as you already know visual studio express editions do not support any kind of extension or plugins . but if you want to give it a shot without spending money $$$ . you can download visual studio 2013 preview ultimate ( its free and you can use it for 138 days ! )

»
6 years ago, # |
  Vote: I like it +1 Vote: I do not like it

If anyone could not get this to work like myself, I had used the source provided on github, complied it and applied some tweaks (added time reference for example). Here it is. The source is included if anyone would like to add tweaks of his own. I hope 000golabi does not mind any of this!

  • »
    »
    6 years ago, # ^ |
    Rev. 3   Vote: I like it 0 Vote: I do not like it

    thanks mitstudent :)

    i'm actually kind of busy these days and don't have the time .

    so i really appreciate any help .

    this plugin is open source and free (for installation and reuse and change and ... )

  • »
    »
    6 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    One Question, but how configure VS to run project with many main definitions of different files

    • »
      »
      »
      6 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Usually I just remove the file after I am done with it (remove from project configuration but keep it on disk for further edits), by pressing delete when selecting the file in the solution explorer -> remove.

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

Anyone still using this? Well I have got a new trick that I think is pretty helpful; instead of writing

#define UNLINE_JUDGE

I replaced it with

#ifndef _WIN64
#define UNLINE_JUDGE
#endif

and configured my VS project to be a 64-bit project. This way no need to remove add the line whenever I am uploading code; I just upload to CF directly.

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

I modified this plugin create a C# version for anyone who would like to use it: http://codeforces.com/blog/entry/18913

»
9 days ago, # |
  Vote: I like it +3 Vote: I do not like it

How install it in Linux?

  • »
    »
    8 days ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    This is Visual Studio, not Visual Studio Code. If you are running Visual Studio through Wine, then you should be able to install it the same way.