Giter Club home page Giter Club logo

cpeditor's Introduction

CP Editor - Boost your competitive programming experience!

downloads All Contributors GitHub Sponsors Product Hunt

Features · Documentation · Changelog · Contributing · FAQ

Νέα Ελληνικά | English | 日本語 | Русский | 简体中文 | 正體中文

demo

type branch build downloads AUR snap
alpha master GitHub Workflow Status - AUR version snap version
beta v7.0 GitHub Workflow Status Downloads - -
stable v6.11 GitHub Workflow Status Downloads AUR version snap version

Get Started

Donate

Contributing

Feedback

Packaging Status

Packaging status

Package maintainers can contact us if any help is needed. For example, we may add some scripts in our CI/CD workflow.

All Contributors

Thanks go to these wonderful people: (if we forget to add you as a contributor, you can add by yourself)


Yufan You
🚧 💻 📖 🌍 🤔 🐛 👀 🚇

Ashar
🚧 💻 📖 🤔 🐛 👀 🚇

liaohy
💻 📖 🌍 🤔 👀

Azer Sadykhzadeh
🌍 👀

IZOBRETATEL777
🌍 👀 🚇

Rajdeep Roy Chowdhury
💻 🤔 🐛

queen bee shuttle
📖 🤔 🐛

Yatharth Verma
💻 🐛

polyomino
📖

Shuhao Zhang
🤔 👀 🌍

Vincent Bermel
🚇

Tony Brown
🤔 💻 📖

Sonu Lohani
🐛 💻 🤔 👀

Flex Zhong
💻

Yiming Zhang
💻 🎨 🤔 👀

Ravenclaw-OIer
🤔 🐛 📖

tuwuna
🤔

Nikhil Sarda
🐛

Arthur-QQ
🤔 🐛

Brijesh1in
🤔 🐛

DarkWarrior703
🤔

v-O_O-v
🐛

Apoorva Raj Bhadani
🐛

Nguyễn Hoàng Dương
🤔

Pat
🤔

Ruzal Ibragimov
🐛

Salil Gokhale
🤔

WYWFlash
🐛

nocriz
🐛

Wandoka
🤔

A. H. M Fuad
🐛

Ankur Ojha
🤔

cs-mshah
🤔

Dmytro Fedoriaka
🐛

m3h3d1
🤔

Al Arafat Tanin
🤔

Siddharth Singh
🤔

samael042
🐛

Starlit_Night
🤔

Abishake
🤔

sahil-ra
🤔

lakshits11
🤔

Md. Sahil Khan
🤔

AbhayAravinda
🐛

AmmarDab3an
🐛

Achintya Kumar
🐛

nutzboi
🐛

GOURAV RAJ
🤔

Jean Berniolles
💻

jaysampartak
🐛

Andrea E. Monti
🤔

tiger2005
🐛

tusqasi
🐛

Bruno
🐛

墨笙_Mooos
💻 🐛

toto6038
🌍

RysteQ
🌍

Hitanshu Mehta
🤔 💻

Ikko Ashimine
📖 🌍

Sriram-L
🐛

crcpucmg
🌍

Acfboy
🐛

TLEBOT
🐛

Dan
🌍

rogeryoungh
💻

Bruno Matheus
💻

topazus
🚇

This project follows the all-contributors specification. Contributions of any kind welcome!

License

GNU General Public License Version 3.0

cpeditor's People

Contributors

allcontributors[bot] avatar bortkiewicz avatar brun0-matheus avatar chungzh avatar coder3101 avatar cpeditor-bot avatar d4nz-jpg avatar dependabot-preview[bot] avatar dependabot[bot] avatar eltociear avatar github-actions[bot] avatar hitanshu-mehta avatar imgbot[bot] avatar imgbotapp avatar izobretatel777 avatar neko-para avatar ouuan avatar palob avatar polyomino24 avatar razdeep avatar rogeryoungh avatar rysteq avatar sadykhzadeh avatar shizuhaaki avatar sonulohani avatar studyingfather avatar swiftqwq avatar thebrave avatar topazus avatar toto6038 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cpeditor's Issues

Memorize the size of the window

Is your feature request related to a problem? Please describe.

Every time I open the CP Editor, its size is the same, even I changed its size last time.

Describe the solution you'd like

When I open the editor, its size should be the same as I closed it last time.

Describe alternatives you've considered

N/A

Additional context

N/A

Some new feature suggestion

I think you should add some feature below, which is common on many IDEs we are using now:

  • Multiple line comment/uncomment/tab (important, many IDEs have this) See : Megaxela/QCodeEditor#27 and Megaxela/QCodeEditor#18
  • Multiple-file access.
  • Preset and save the compiler parameter for all language (like C++, Java, Python,...) so we won't have to change it when we switch programming language.
  • More themes (Monokai, Atom, etc) whatever you can add, or even better, you can add Custom Theme feature.. See #60
  • Indentation Coloring (wonderful for Python programmer)
  • An option to set the time limit for a problem, and show up the #execution time.. On Linux your program must terminate after 5 sec of start and on windows there is no such limit. However, I have added now, the execution time is also showed.
  • Detached Execution should do the trick even if we don't have system("pause") command.. This works on Linux! xterm pauses after execution however on Windows due to CMD limitations, it is not possible now! If we migrate to Powershell, this will be fixed, but due to backward compatibility we still detach on CMD.exe.

Add snippet support same as like sublime text

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Add GDB support

Is your feature request related to a problem? Please describe.

I don't know how to use GDB with CP Editor.

Describe the solution you'd like

Support GDB with GUI, like many other IDEs.

Describe alternatives you've considered

Support GDB in command line.

Additional context

N/A

Open .cpp file with CP editor

Is your feature request related to a problem? Please describe.
If this feature was added, there would be a solution to the issue regarding the crash of the editor when it opens the file explorer. This bug doesn't allow some users to save/open files directly from the program and is completely explained here: #6 .

Describe the solution you'd like
When I select and right-click a .cpp file in the file explorer, there's no "Open with CP editor" option. Moreover, when I force the editor to open a .cpp file, it opens as if I opened it by double-clicking the executable file.

Furthermore, this feature exists in nearly every code editor. Therefore adding it would not only improve the program's quality but also benefit users who don't experience the bug.

Describe alternatives you've considered
N/A
Additional context
Here's a gif of what I've been trying to do: https://i.imgur.com/swpWIcB.gifv

No output from stderr

Describe the bug
No output from stderr when asserton failed.

To Reproduce
Steps to reproduce the behavior:

  1. Write C++ program which writes to stderr and the fails assertion;
  2. Enter anything in "Input or stdin" textbox;
  3. Click "Compile and run".
  4. Only message "[Non-zero exit code 3]" appears in "Compiler Messages and stderr".

Expected behavior
Message written into stderr and message abut failing assertion seen in "Compiler Messages and stderr".

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10

Additional context
See assertion on which line has failed is very useful for debugging.

Saved file is empty while the editor is running

Describe the bug

After pressing the "Save" button, the file is empty until closing the editor.

To Reproduce

  1. Open a file using the CP Editor.
  2. Write something.
  3. Press Ctrl+S.
  4. View the file outside of the editor, it is empty.
  5. Close the editor.
  6. The codes are saved in the file.

Expected behavior

In the 4th step, the file shouldn't be empty.

Screenshots

image

Desktop (please complete the following information):

  • OS: Windows 10
  • Version: 2.0.0

Smartphone (please complete the following information):
N/A

Additional context
N/A

Auto Complete

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Key-Triggered templates

Is your feature request related to a problem? Please describe.
It's kinda annoying to copy and paste your template every time you create a new file.

Describe the solution you'd like
A template/snippet which is key triggered.

Describe alternatives you've considered
If a Key Triggered template is not an option, a default template maybe(gets triggered by the click of a button)? This eliminates the possibility of being able to use multiple templates.

Additional context
Add any other context or screenshots about the feature request here.

Rerun with Expected is not correctly being getting results

Describe the bug
Re-run with Expected being clicked is not able to grasp the value of the results.

To Reproduce
N/A

Expected behavior
N/A

Screenshots
N/A

Desktop (please complete the following information):

  • OS: [Windows, Linux]
  • Version 1.50.1

Smartphone (please complete the following information):
N/A

Additional context
N/A

Save the inputs and outputs in the file

Is your feature request related to a problem? Please describe.

I need to re-enter the inputs and outputs when I open a file again.

Describe the solution you'd like

Save the corresponding relationship between the file path and the inputs and outputs in CP Editor, when opening files with the same path, the inputs and outputs are the same.

Describe alternatives you've considered

Save the inputs and outputs in the file, for example, save them in the annotations with JSON.

Additional context

It's from this comment .

Request for the suggestions

Is your feature request related to a problem? Please describe.
It is not suggesting whatever variables I have used .

Describe the solution you'd like
I want the editor to suggest those words that I have used only in writing code not anything extra (like language suggestion for let's say I am including something then I don't want suggestions ).

Describe alternatives you've considered
N/A

Additional context
N/A

Expand editor's size

Is your feature request related to a problem? Please describe.
N/A

Describe the solution you'd like
When a code line is very long, a sliding bar appears at the bottom of the editor. It allows us to see the whole line ( see https://i.imgur.com/jNnrBNc.png ). But I feel like there should be an option for scaling the part of the editor in which we type ( I'm talking about this horizontal double arrow https://i.imgur.com/9Kh1gKp.gifv ). With this enhancement, the user would not spend too much time pressing the arrow keys nor scrolling the bottom bar during a contest (in order to edit or see the right part of a given line of code). The contestant would be able to simply click at the part of the code he/she wants to go to.

Furthermore, it is also a feature that puts CP Editor's quality closer to VS Code's, Atom's, etc..

Describe alternatives you've considered
Using the scrolling bar or pressing arrow keys which is considerably slower.

Additional context
N/A

Formatter error

Describe the bug

Formatter crashes unexpectedly.

To Reproduce

  1. Open a new tab.
  2. Make 3 new lines.
  3. Format the code.
  4. Get [Format command returned non-zero exit code -1073741819].

It happens with a high probability, but not always for me.

Expected behavior

The formatter won't crash.

Screenshots

image

Desktop (please complete the following information):

Smartphone (please complete the following information):

N/A

Additional context

I think it happens because the file is occupied by the editor, and clang-format can't modify it.

I suggest using clang-format by its output, instead of the -i option. It will not only fix this bug, but also support undo for formatting.

I'll try to fix it tomorrow.

Use Competitive Companion to parse tasks

Is your feature request related to a problem? Please describe.
This editor will be a complete package if it can parse test data from online judges. Currently it takes some time to create a new folder, load the template, etc.

Describe the solution you'd like
You can use Competitive Companion to parse the test data. See this vscode extension ACMX as a demo. It creates a new folder and new file after parsing the data from online judges.

Describe alternatives you've considered
You can use other tools like https://github.com/xalanq/cf-tool. In my opinion the above solution is better because Competitive Companion supports a lot of online judges and not only codeforces.

Additional context

Highlight multiple lines to indent/unindent

Is your feature request related to a problem? Please describe.
It's not convenient when I want to indent/unindent multiple lines together.

Describe the solution you'd like
I can highlight the lines I want to indent/unindent, then press Tab/Shift+Tab to indent/unindent all the highlighted lines at the same time.

Describe alternatives you've considered
Other hotkeys are also preferred.

Additional context
N/A

Merge input expanding & expected output

Is your feature request related to a problem? Please describe.

Now input from file and expected output from file are separated, which is not so convenient.

Describe the solution you'd like

It would be convenient if they are both in a single pop-up window, which can be opened by clicking the "More" button.

Describe alternatives you've considered

Two different buttons for input and expected output. (Now you have to right-click first and then click "Expand" to open the "input from file" window instead of a single click.)

Additional context

N/A

Multiple Tabs support

Is your feature request related to a problem? Please describe.

I can't edit multiple files in a single process (a single window), and I can't drag a file into the GUI in order to open it (the path will be added in the code insteadly).

Tabs in sublime text:
image

Drag a file into CP Editor:
image

Describe the solution you'd like

Add multiple tabs support, and I can drag a file into the GUI to open it.

Describe alternatives you've considered

N/A

Additional context

N/A

Input/ ouput fields not getting cleared on New Session

Describe the bug
When we are creating a new session then the input and output fields are not getting cleared.

To Reproduce
Steps to reproduce the behavior:
N/A

Expected behavior
Input and output fields should get empty on creating a new session

Screenshots
N/A

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: Samsung j4+
  • OS: Android 9
  • Browser Chrome
  • Version [e.g. 22]

Additional context

WA when output is exactly as expected

Describe the bug
Veredict is WA when output is exaclty as expected

To Reproduce
Steps to reproduce the behavior:

  1. Fetch this problem https://codeforces.com/contest/1281/problem/C
  2. Insert this solution

#include<bits/stdc++.h>
using namespace std;
long long mod = 1000000007;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
long long i, j;
long long n;
long long x;
string s;
cin >> n;
while(n--){
s="";
cin >> x >> s;
int pos=0;
long long actLen=s.length();
while(s.length() < x){
string tempS = s.substr(pos+1, string::npos);
for(i='0'; i<s[pos]-1; i++){
for(j=0; j<tempS.length() && s.length() < x; j++){
s+=tempS[j];
}
}
pos++;
}
long long ans;
for(i=0; i<x; i++){
long long mult = s[i]-'0';
actLen = (i+1)+(((actLen-(i+1))%mod)*(mult%mod));
//cout << actLen<< "\n";
}
cout << actLen%mod << "\n";
}
}

  1. Compile and Run
  2. Veredict is WA

Screenshots
Anotación 2019-12-16 080718

Desktop (please complete the following information):

  • OS: Windows 10x64bits

Window size is not memorized

Describe the bug

Every time I open the CP Editor, its size is the same, even I changed its size last time.

To Reproduce

  1. Open the editor.
  2. Change the size of the window.
  3. Close the editor.
  4. Open the editor again, its size is the same as it was in step 1.

Expected behavior

When I open the editor, its size should be the same as I closed it last time.

Screenshots

N/A

Desktop (please complete the following information):

  • OS: Windows 10
  • Version: 2.0.0

Smartphone (please complete the following information):

N/A

Additional context

N/A

Feature : Add Run-Only for the binaries

Is your feature request related to a problem? Please describe.
Currently, the Run command compiles the code before running the binary. On slower PC/Computer you might find that this slows down running program on different testcases slow as each run requires a compilation.

Describe the solution you'd like
There should be a Run only command/button that runs the program on given inputs

Describe alternatives you've considered
N/A

Additional context
N/A

Show verdicts with color

Is your feature request related to a problem? Please describe.

The verdicts are not conspicuous since the font is small and both AC and WA are white.

Describe the solution you'd like

Use green for AC and red for WA.

Describe alternatives you've considered

N/A

Additional context

N/A

add Codeforces Tool (Submit, Parse, Test, Watch, Pull, etc.)

Is your feature request related to a problem? Please describe.

The problem: I need to copy the samples from the webpage manually.

Describe the solution you'd like

My Solution: use cf-tool (in the GUI of CP Editor, not in the command line).

Describe alternatives you've considered

Alternative Solutions: implement a part of cf-tool's functions.

Additional context

Bracket removal

Is your feature request related to a problem? Please describe.
Whenever you delete an opening bracket or parentheses as a typo, it won't delete the corresponding closing bracket.

Describe the solution you'd like
Let's say the cursor is at the I.
In a(I)b and a()Ib, when you press Backspace, it should become ab. but in a(Ibcd)e when you press Backspace it should still be aIbcd)e.

Describe alternatives you've considered
none

Additional context
none

some ideas

  1. The size of output boxes and compiler messages box size could be flexible, because on small monitors there is just not enough space for code editor window.

  2. An option to make a new .cpp file after parsing a task could be very convenient. Like it would be possible to choose a folder, and when I parse a task, a file with the task name automatically is made.

  3. Make run and compile possible using a hotkey

Change the name and the description of the repository

Is your feature request related to a problem? Please describe.

It's already CP Editor 4, but the repo's name is cp-editor2.

There is no "Competitive Programming" but only "CP" in the description, and I can't find this repo by searching "competitive programming editor".

Describe the solution you'd like

Change the name of this repo to "CP Editor".

Change the description of this repo to "An editor specially designed for competitive programming".

Describe alternatives you've considered

N/A

Additional context

N/A

Make a telegram group / Github organization

Is your feature request related to a problem? Please describe.

There are always discussions not related to the issues/PRs.

Describe the solution you'd like

Make a telegram group / Github organization for discussions.

A telegram group may be a better choice because it can be open for the users.

Of course, you can make both of them. And this repo could be transfered to the organization.

In one word, build a community from now on. Though there are only two active contributors now. Hope there will be more in the future.

Describe alternatives you've considered

Use other platforms.

Additional context

N/A

competitive companion without new session or open new session in a new tab

Is your feature request related to a problem? Please describe.

If I want to use competitive companion, and I've already written the codes, it's not convenient that the editor will open a new session.

Describe the solution you'd like

There can be a message box to choose whether to open a new session or not.

Also, now there is a reason to support multiple tabs which is described in #13.

Since the competitive companion is supported, it would be nice if the new session is opened in the same window but a new tab (since opening a new window listening to the same port is technically unfeasible).

Hence, competitive companion for a whole contest can be also supported (and there can be no message box for contest parsing).

Describe alternatives you've considered

Won't support multiple tabs, but only a message box to choose whether to open a new session or not.

Additional context

N/A

Regarding Indentation

Is your feature request related to a problem? Please describe.
Whenever I am using the for loop or anything like that and not using the parenthesis then it just goes to the new line .
Like : for( int i = 0 ; i < 10 ; ++i)
*the pointer comes here .

Describe the solution you'd like
If the pointer comes here that would be nice idea .
Like : for( int i = 0 ; i < 10 ; ++i)
*if the pointer comes here that would be nice .

It would be amazing if you add this feature for automatic parenthesis like let's say we are writing some code inside an if Like this .
if( i==10)
update something .

But let's say we missed something and I want to add a new line below the update something then I must use parenthesis
if(i==10)
update something .
again doing something .
Now I need to put bracket on the both ends when in the beginning and in the end
if(i==10){
update something .
again doing something .
}

Now it will be amazing if I add only the beginning bracket and the end bracket automatic comes at the right place .

Use testlib.h to check the verdicts

Is your feature request related to a problem? Please describe.

Now the diff viewer works incorrectly for me, I guess it's about the newline character (I'm using Windows 10, and this happens only when there are more than one lines). And I have to follow a certain format strictly, even the space characters.

Describe the solution you'd like

Use testlib.h to check the verdicts. Users can choose one of the default checkers by a drop-down box, and wcmp is the default one.

The details besides AC/WA can be shown in the "Compiler Messages and stderr" section.

Describe alternatives you've considered

Use something like diff -b to ignore spaces.

Additional context

N/A

cmd window flashes when opening and update settings

Describe the bug

The cmd window flashes every time when I open the editor and update the settings.

To Reproduce

It happens every time.

Expected behavior

There shouldn't be such windows, or they shouldn't be visible.

Screenshots

image

Desktop (please complete the following information):

  • OS: Windows 10 Home 1903 18362.476
  • Version: 2.0.2

Smartphone (please complete the following information):

N/A

Additional context

It only happens on my laptop, not on another desktop PC.

Request for a transparent theme

Is your feature request related to a problem? Please describe.
It is not related to a specific problem, just a suggestion to enhance the user interface.

Describe the solution you'd like
It would look cool if we had an option to adjust the transparency of the editor.
So requesting a feature to adjust the percentage of transparency of the editor screen (this feature is also implemented in emacs).

Describe alternatives you've considered
N/A
Additional context
N/A

Add function parameter hints

Is your feature request related to a problem? Please describe.

Parameter hints are very helpful, especially when writing some advanced data structures, or use unfamiliar STL functions.

Describe the solution you'd like

Something like this:

image

Describe alternatives you've considered

N/A

Additional context

It seems hard to implement this function, so it can be considered with low priority.

Can't find any file when adding inputs/expected outputs from files

Describe the bug

I can't find any file when adding inputs/expected outputs from files.

To Reproduce

  1. More → Read Expected from File / Right click the Input → Expand → Read From file

Expected behavior

I should be able to choose files with any suffix (since the suffix is different in different OJs).

Screenshots

image

image

Desktop (please complete the following information):

  • OS: Windows 10
  • Version: 3.0.0

Smartphone (please complete the following information):

N/A

Additional context

N/A

Program crashes when trying to save/open file (Windows)

Describe the bug
I've been having trouble to save files. When I press Ctrl+S or go to "file -> save", the file explorer window pops up. The problem is that 1~2 seconds after it pops out, not just the file explorer window stops working, but also does the entire code editor. The same thing happens when I try to open a file or do anything that involves opening a file explorer window. This problem isn't being experienced only by me: this CodeForces user also complains of it https://codeforces.com/blog/entry/71673?#comment-56041 .

Expected behavior
The program was not supposed to crash

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'File'
  2. Click on 'Save' / Skip step 1 and press Ctrl+S
  3. See error

Screenshots
https://i.imgur.com/PYPI6FR.gifv

Desktop (please complete the following information):
-OS: Windows 8.1 (version 6.3.9600 / 64 bits)

Smartphone (please complete the following information):

Additional context
I downloaded the "stable 1.50.2" release from https://github.com/coder3101/cp-editor2/releases .

Expected check is not correct

Describe the bug
Multi-line output on Expected being clicked does not correctly checks with got result.

To Reproduce
Steps to reproduce the behavior:
N/A

Expected behavior
N/A

Screenshots
N/A

Desktop (please complete the following information):

  • OS: [Windows, Linux]
  • Version 1.50.1

Additional context
N/A

Provide a way to set Tab Size

Is your feature request related to a problem? Please describe.
There should be a way to set the length of tab

Describe the solution you'd like
Tab value should be set from user

Describe alternatives you've considered
N/A

Additional context
N/A

Appimage Not Working

AppImage is not working in Manjaro

Appimage is not working in Manjaro Linux. After making it executable and running it nothing works. Currently i'm using Manjaro Linux 18.0.4.

AppImage is not working

Describe the bug
I'm currently using Manjaro Linux. The AppImage file is not working on this OS. After making the Appimage executable and running it nothing happens.

To Reproduce
N/A

Expected behavior
N/A

Screenshots
N/A

Desktop (please complete the following information):

  • OS: [Manjaro Linux]
  • Version [18.0.4]

Smartphone (please complete the following information):
N/A

Additional context
N/A

Add support for Ctrl + /

A feature that lets you comment out a block of code using [ CTRL ] + [ / ], Extremely helpful while debugging.

Save when compiling / closing warning only when the file is not saved

Is your feature request related to a problem? Please describe.

I usually forget to save the file, because I'm used to other IDEs which automatically save files when compiling, and warn you at closing only when the file is not saved.

Describe the solution you'd like

I think the file should be saved when compiling, or make it an option. Maybe only be enabled when the corresponding file is specified, which allows compiling without the file like the online IDEs.

Also, I think the warning when closing the editor should only be there when the file is not saved.

Something represents for "the file has been modified" is also helpful, like:

image

image

Describe alternatives you've considered

Different warnings for normal exiting / exiting without saving.

Additional context

N/A

Support for more themes - Monokai

Add in support for more themes like the one in sublime text 3.

The current theme looks like Xcode. It's not bad, but it's kind of bluish.

Some themes which i would recommend is Monokai , Brogrammer etc

Showing compiler warnings

Is your feature request related to a problem? Please describe.

I can't see the compiler warnings.

Describe the solution you'd like

Show compiler warnings after compiling.

Maybe add a setting of whether to show the warnings or not. (However, this can be done by adding -w in the compile command.)

Describe alternatives you've considered

N/A

Additional context

N/A

Segementation fault on changing port twice

Describe the bug
When changing the Competitive Companion port for the second time, the app crashes.

To Reproduce

  1. Change port
  2. Here it would show
[18:34:29] [Companion] [Changing port to 10045]
[18:34:29] [Companion] [Stopped Server]
  1. Change port again
  2. Segmentation fault

Expected behavior
no segfault

Screenshots

QProcess: Destroyed while process ("g++") is still running.
Segmentation fault (core dumped)```

**Desktop (please complete the following information):**
 - OS: Linux Lenovo-K450e 5.3.0-24-generic #26-Ubuntu SMP Thu Nov 14 01:33:18 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux (Lubuntu Eoan)
 - Browser: Not applicable
 - Version: 3.0.0

**Smartphone (please complete the following information):**
 - Device: na
 - OS: na
 - Browser na
 - Version na

**Additional context**
n/a

Add files as input & Add more than three inputs

Is your feature request related to a problem? Please describe.

I can only add short inputs in the "Input or stdin" window. And I can only add three inputs.

Describe the solution you'd like

Support adding files as inputs. And support adding more than three inputs.

Maybe it's good to display the content of only three inputs, and others can be added by a popup window, or add from the webpage, which is described in #11.

Describe alternatives you've considered

Add a button "Run on file" which allows you to choose a file as the input.

Additional context

Tabs are replaced by spaces

Describe the bug

All tabs are replaced by spaces, so that I need to delete 4 characters in order to delete an indent.

To Reproduce

  1. Press Tab.
  2. Press Backspace, you need to press it four times in order to delete the indent.

Expected behavior

Tabs won't be replaced by spaces, and I need only one Backspace to delete it.

Screenshots

N/A

Desktop (please complete the following information):

  • OS: Windows 10
  • Version: 2.0.0

Smartphone (please complete the following information):

N/A

Additional context

There can be a setting of whether Tabs will be replaced by spaces.

I know I can use Shift+Tab, but I'm used to using Backspace for single Tab deletion.

Flexible number of test cases, more than three or only one

Is your feature request related to a problem? Please describe.

Now there are always three test cases. If the problem has more than 3 test cases, I have to edit them manually, or even frequently (like finally passes test 4 after debugging, but fails on test 1 again, passed test 1 then fails on test 4 again). If the problem has only a single test case, the two empty test cases will cost extra spaces.

Describe the solution you'd like

The number of test cases is flexible.

  • By default, only one test case.

  • A button for adding test cases, another for deleting test cases.

  • Auto change after using the competitive companion.

  • Use a scroll bar for more than three test cases.

Describe alternatives you've considered

Use a drop-down menu instead of the scroll bar for extra test cases.

Additional context

N/A

Auto Parenthesis `{` always adds a new line

Describe the bug
The current auto Parenthesis always adds a new line before closing } after { has been typed. This causes bad behaviour in some cases.

To Reproduce
Steps to reproduce the behavior:

  1. Type { in C++ mode

Expected behavior
Add a new line only when {|} and a enter is lressed

Screenshots
N/A

Desktop (please complete the following information):

  • OS: Win, Mac, Linux
  • Version [e.g. 2.0.3]

Additional context
N/A

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.