A fork of RinRi's CPSRC. A tool for C++ Competitive programmers to do stuff
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

README.md 1.4 KiB

hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Overview
  2. This is a fork of RinRi's <a href="https://github.com/RinRi-D/cpsrc">cpsrc</a>, but made to be compatible with Debian based Operating Systems, and use Visual Studio Code instead of neovim.
  3. It also has a couple tweaks, such as custom directories, better dpendency compatibility, and custom program names.
  4. # Installation
  5. Clone the repository and make setup.sh executable and run it:
  6. ```shell
  7. git clone https://github.com/Madiwka4/cpsrc.git
  8. cd cpsrc
  9. chmod +x setup.sh
  10. ./setup.sh
  11. ```
  12. First, you have to choose your default text editor. You can set any editor you want, as long as it supports opening files using the "editor file" type shell command.
  13. Then, you can choose the package name of the editor. This makes sure that the editor is up to date.
  14. After that, you are given the choise to enter your custom directory, for example,
  15. ```
  16. Enter custom directory for code? [y/N] y
  17. Enter directory for files:
  18. /home/user/Code
  19. Set directory as /home/user/Code
  20. ```
  21. and your files will be unpacked in /home/user/Code!
  22. Next, you can create your own template. This doesnt support pre-selected lines, since it doesn't work on VIM!
  23. # Usage
  24. In order to create a new .cpp file, you have to run create.sh with filename argument without an extension:
  25. ```shell
  26. ./create.sh 1234a
  27. ```
  28. You will be automatically redirected to VSCode.
  29. To compile&run file, you can just use run.sh with filename, (also without extension)
  30. ```shell
  31. ./run.sh 1234a
  32. ```