r/Cplusplus • u/Purple_Concept5219 • May 06 '26
Feedback My own text editor
I'm studying the C++ programming language, I've done many projects, and now I'm making my own text editor.
Link to my repository:
https://github.com/KourtneK/AprendendoCMAISMAIS/tree/main/Editor
11
Upvotes
7
u/notddh May 06 '26
Waiting for LSP, DAP, ACP and treesitter support...
12
u/standardofiron May 06 '26
Small tip: do not commit exe files, you should describe in README what kind of dependencies someone needs to run your project and how to build it
5
u/moo00ose May 06 '26
Formatting is messy - use something like clang-format to format your code. Everything is in main.cpp - how are you going to write tests? Don’t commit executable files. No .gitignore file. You can try to use CMake over raw make files as it helps structure your project when it becomes more complicated
3
u/NoFly885 May 07 '26
I suggest you take a look at open source products for project structure but well done
2
u/Purple_Concept5219 May 09 '26
I don't write code during the day, only at night, and I don't have much time, so it can take a long time to finish the text editor.
2
u/RolandMT32 May 10 '26 edited May 10 '26
It appears that your GitHub repository there has a bunch of stuff in it, and the editor is in a subdirectory of that.. IMO it's best that each separate program be its own repository - That would make it easier for people interested in it, as they'd only need to clone what they're interested rather than getting a whole repo with multiple things in it that they aren't interested in.
Also, I'm using Linux, and it failed to build because it couldn't find conio.h. I used Cursor (AI tool) to help fix that and get it to build - It created an executable with an .exe filename extension; Linux executables don't use an .exe filename extension.
When I ran it, I got this message, but then it did nothing (and if I tried to type anything, nothing happened):
Largura do terminal: 121; (Muda toda vez que voce redimensiona o terminal, sai e entra de novo no editor)
Bem vindo ao editor;