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.
It also has a couple tweaks, such as custom directories, better dpendency compatibility, and custom program names.
# Installation
# Installation
Clone the repository and make setup.sh executable and run it:
Clone the repository and make setup.sh executable and run it:
@@ -9,9 +15,20 @@ chmod +x setup.sh
./setup.sh
./setup.sh
```
```
First, you have to write template which will be used to create new files. Remember the number of the line with which you usually start coding. Enter it. That is it!
First, you are given the choise to enter your custom directory, for example,
```
Enter custom directory for code? [y/N] y
Enter directory for files:
/home/user/Code
Set directory as /home/user/Code
```
and your files will be unpacked in /home/user/Code!
Next, you can create your own template. This doesnt support pre-selected lines, since it doesn't work on VIM!
# Using
# Usage
In order to create a new .cpp file, you have to run create.sh with filename argument without an extension:
In order to create a new .cpp file, you have to run create.sh with filename argument without an extension:
@@ -19,10 +36,10 @@ In order to create a new .cpp file, you have to run create.sh with filename argu
./create.sh 1234a
./create.sh 1234a
```
```
You will be automatically redirected to neovim.
You will be automatically redirected to VSCode.
To compile&run file, you can just use run.sh with filename(this time with extension):
To compile&run file, you can just use run.sh with filename, (also without extension)