hex_piyush's blog

By hex_piyush, history, 29 minutes ago, In English

Manually compiling, running, and testing each testcase wastes a lot of time. So here's my workflow that I've been using for years. Maybe some part of this can improve your workflow as well.

Note: This is a C++ based workflow, but with minor tweaks, you can use this for any other language.

Links

Workflow

  1. Create a file (e.g., a.cpp).
  2. Press <leader>rt (my keybind) to receive the testcases.
  3. Press the Competitive Companion extension on your browser to parse the testcases.
  4. Type cp and hit enter, which triggers the nvim snippet.
  5. Write your solution.
  6. Press <leader>tr (my other keybind) to run the testcases.
  7. You'll see a UI pop up that clearly shows the passed and failed testcases.

If you have any questions about adapting these Lua configurations for your own setup, feel free to ask below!

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

»
17 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Crazy