Fast Olympic Coding plugin for Sublime Text 3 & 4
- Installation
- Test Manager
- Settings
- Stress Testing
- Class Completion
- C++ Lint
- Debugger
Installation
- Install via Package Control
- Install manually:
download plugin into packages (Preferences — Browse packages...
)
Warning! rename plugin folder to FastOlympicCoding
TestManager
![TestManager](https://images.downcodes.com/uploads/20241213/img_675b50edbc1d230.png)
TestManager Keybindings
- ctrl+b (OSX) ctrl+alt+b (Linux + Win) compile and run
- ctrl+enter new test
- ctrl+c (OSX) ctrl+x (Linux + Win) kill process
- ctrl+shift+b (OSX) run with debugger
- ctrl+d delete test
- ctrl+super+up/ctrl+super+down (OSX) ctrl+shift+up/ctrl+shift+down (Linux + Win) swap tests
- cmd+k, cmd+p (OSX) ctrl+k, ctrl+p (Linux + Win) close/open right panel
Settings
- To edit settings
- press cmd+shift+p (OSX) ctrl+shift+p (Linux + Win) and type
FastOlympicCoding: Open Settings
- or
Preferences — Package Settings — FastOlympicCoding
StressTesting
![StressTesting](https://images.downcodes.com/uploads/20241213/img_675b50edbdb5f31.png)
- To stress test a solution, you need to implement the three following files:
<name>.cpp
- program that works incorrect
<name>__Good.cpp
- program that works correct
<name>__Generator.cpp
- program that generates tests, you can read a seed for a random generator in the input
- Type
FastOlympicCoding: Make Stress
in the command palette to run and FastOlympicCoding: Stop Stress
to stop stress testing
ClassCompletion
![ClassCompletion](https://images.downcodes.com/uploads/20241213/img_675b50edbf97e32.png)
- Type aliases to substitute them with data types
- Customize aliases in the settings file
CppLint
![CppLint](https://images.downcodes.com/uploads/20241213/img_675b50edc047033.png)
- Error highlighting works in real-time
- Specify custom compile command in the settings file
Debugger
![Debugger](https://images.downcodes.com/uploads/20241213/img_675b50edc095934.png)
- debugger only for OSX
- ctrl+shift+b to run with debugger
- point the cursor on a variable to see its value
- to select a stack frame (type
FastOlympicCoding: Select Frame
in the command palette)
- the only one dependency is xcode (you can install it with
xcode-select --install
)