C++ Looking for a functioning IDE for C++

The big problem I have with OPC (other people’s code) is the crappy formatting that makes it hard to follow.

You are (never) stuck with someone else's coding style -- you can always reformat C/C++ source code into a format that works for you.

There used to be a GNU tool that reformatted existing C/C++ source code into different formats (that goes waaayyyy back in programming history) that did this - but I couldn't find that tool after a quick search. I am (pretty sure) that tool is still in the GNU tool set -- maybe they renamed it?

But CLANG has a tool (clang-format) which can be configured here: (Link: lang.llvm.org): ClangFormatStyleOptions

There are also settings for the major coding standards:
  • LLVM - A style complying with the LLVM coding standards
  • Google - A style complying with Google’s C++ style guide
  • Chromium - A style complying with Chromium’s style guide
  • Mozilla - A style complying with Mozilla’s style guide
  • WebKit - A style complying with WebKit’s style guide
  • Microsoft - A style complying with Microsoft’s style guide
  • GNU - A style complying with the GNU coding standards
  • InheritParentConfig - Not a real style, but allows to use the .clang-format file from theparent directory (or its parent if there is none). If there is no parentfile found it falls back to the fallback style, and applies the changesto that. With this option you can overwrite some parts of your main stylefor your subdirectories. This is also possible through the command line,e.g.:--={BasedOnStyle: InheritParentConfig, ColumnLimit: 20}
  • InheritParentConfig=<directory-path> Same as the above except that the inheritance is redirected to <directory-path>. This is only supported in configuration files.
See your brackets and curly braces "The way you want them to be!"
 
  • Like
Reactions: mer
Isn't Visual Studio Code free of charge? Last I checked, it supports nearly every conceivable language via free plugins. And lots of tools, too - pretty much a complete toolchain, if you know how to set it up.
I gave up on VSCode because it's a royal pain to build. It's crazy bloatware, even for an IDE.
 
Happy Friday everyone!

I've been using juci++ for almost a decade. I got a lot of mileage out it but lately it crashes and hangs so I'm looking to replace it with something more reliable. I specifically want something that can compile C++ using clang and allow source debugging in the IDE (running lldb from a shell doesn't count - I can do that without an IDE).

What I've tried:
  • jetbrains-clion: the trial from ports crashes on startup on an empty directory.
  • vscode: it asks me to install an extension. I install an extension. vscode asks still wants an extension. I install another extension and get an error that the extension does not support FreeBSD. If someone is using vscode - what's the secret sauce to get it to compile and debug clang?
  • Netbeans or Eclipse: I've not used these in a long time and that was for Java. No idea how to get either to create an empty project good enough to debug hello-world. Creating a new C++ project in Netbeans gives me something that won't compile, run or debug.
I'm looking not so much for the name of an IDE but more like "I've been using X and here are the instructions I used to set up X."
If you do not mind a minimalist approach, this is a shameless plug: https://github.com/776E79/octopus
 
Back
Top