Currently I am using VS Code with https://github.com/hiroMTB/vscode_oF but code completion doesn’t work and I find it very handy to be able to quickly type dot and see a list of available methods, for example. Someone must have figured this out so… here I am asking. I’m not opposed to nvim or something. I don’t love QT because it’s sort of massive.
atom. semi-code completion (but you wont need it after a while, at least not needed here). vscode tries to compile everything, and when you have a massive of folder it puts the machine to a crawl (99% all cores)
Qt is huge but Qt Creator (4.6.1) is 500 mb or so on my laptop, and you don’t need Qt to use Qt Creator. I use it with Mint on older laptops and desktops. Running the /qtcreator/install_template.sh script makes it super easy to create or import new oF projects; so I never need to use the project generator with Qt Creator.
I use qtCreator. The version I use is the latest one that you can install offline. It’s 4.11.2
I use VS Code a lot for some embedded programming, but for OF it’s qtCreator all the way. The main reason I think is the debugger and the general workflow, plus the fact OF can spit out qtCreator projects using the projectmanager tool.
It’s QtCreator, not just Qt, it’s not the same even if based on Qt.
Since it’s officially supported, with tutorial in the oF download section, this is the easiest one to set up and requires the least work to do so.
Good thing is, even the newest versions like QtCreator 4.11.1 work with OF very well without issues (even though the setup tutorial for OF on Linux is for 4.6.1); tried both 4.6.1 and 4.11.1, doesn’t make much difference - it works just fine.
Don’t know about vscode and atom, considering full code autocompletion. To have it, they would require to recognize openFrameworks project dependencies (for your own OF-based project) - and to do that, they’d have to compile it in real-time, seeing whether you can use some particular OF function and what arguments can it take, how many overloads does it have, etc.
Tried Atom before, but to me, it’s limited to autocompletion of your own project only. It won’t see the functions of openFrameworks you have in the documentation section.
I modified the lines to satisfy the paths in my workspace and then code completion worked just fine. Keep in mind not all the library locations are up-to-date/map perfectly to whatever distro you’re using
I use neovim. I use the built in LSP functionality with clangd for code completion (plugins for autocompletion + snippet expansion) and a stripped down ccls for the AST extensions. A handful of other plugins to build+execute (which can also be done without)
Can share my dotfiles with comments if anyone is interested in that setup
PS: I use the python module(?) compiledb to generate the compile_commands.json to help the LSP
I’m using Emacs with lsp-mode (clangd as my language server). After generating a compile_commands.json file in my app root (not OF root), I am able to get auto-completion, go-to-definition, and all the other IDE features. I used compiledb to create compile_commands.json.