VsCaide is a Visual Studio extension which serves as caide frontend. Rather than using caide as a command line application, you can do everything from Visual Studio GUI.
Visual Studio 2017 Community Edition (free) or higher is required. To install, locate VsCaide in extensions manager. Alternatively, double click downloaded *.vsix file.
Select View -> Other Windows -> Caide. Recommended location of Caide window is under Solution Explorer.
In Caide window, click 'Create caide solution' button and select an empty
folder where your solution will be created. Use buttons in Caide window to
create/parse problems. Implement the solution in generated solve
function.
(You can modify solution/test templates in templates
directory.)
After building the corresponding project, submission.cpp
file is created in
the problem's directory (and also copied to the solution's directory). This is
the file to submit to an online judge.
You can run/debug tests by clicking corresponding buttons in Caide window or
by pressing Ctrl+F5
/F5
.
Your library of prewritten code goes into cpplib
project.
For Topcoder support you will also need the Arena plugin.
Video tutorial on how install and use VsCaide: https://youtu.be/qNKBdqifxpU.
Caide can parse problem definitions (problem name and sample tests) automatically. You need to provide a URL of problem or contest in 'New problem' or 'Parse contest' dialogs.
VsCaide is compatible with chelper chrome
extension
and Competitive Companion browser extension.
(To parse a problem, click the plus sign that appears in tab bar for supported
sites.) Because of how the extensions work, VsCaide has to run a local HTTP
server that will accept requests from Chrome. (You may need to click Allow in
Windows firewall prompt.) You can disable this feature by adding a setting
enable_http_server
equal to false
to [vscaide]
section in caide.ini
file.
Default port for Competitive Companion is 10043. (It can be changed in config). If you change it, you need to add it as an additional port in the settings of the browser extension.
VsCaide should work out of the box. However, you can tweak most configuration
options described in caide
README.
Make sure to read the section on C++
inliner
too. In addition, the property
file vs_common.props
in solution root directory is included into all generated projects. You can
modify this file in Property Manager window.
You can report issues on github or in Codeforces thread. Try to include as much information as possible, such as:
- All installed versions of Visual Studio
- Error message. You can get detailed output in Output window (View menu -> Output).
- Your caide.ini file.
- If the problem is related to C++ code inliner, add a
-v
option toclang_options
list in caide.ini file. This will produce more diagnostics output.