Can I turn Atom to a full C++ IDE

#1

Atom is quite cool but there is no run buttons and it is not an IDE. Is there anything to turn it into a full IDE?

0 Likes

Debugger windows
#2

Atom has no ability to process code, but there are numerous packages created by the community to allow for building and running code from within Atom. Just search in the package directory for the compilers you require and explore around to find out which packages meet your needs.

If you want to add buttons to Atom, the flex-tool-bar package is useful for that.

0 Likes

#3

I don’t know what packages to get, could you please give me the link to em?

0 Likes

#4

I don’t know what features you want. I also don’t develop in C++, so I don’t know what packages are best.

0 Likes

#5
  • For it to underline red,

  • For it to have a play button to run your code within Atom

  • For it to autocorrect and have intelisense

Basically it would be nice to have all the features from an IDE.

0 Likes

#6

Check out linter-gcc.

For it to have a play button to run your code within Atom

There are a variety of packages that can be used to run code. What I use is process-palette, which gives a lot of control, but many people prefer the simplicity of script. And then there’s gpp-compiler, which was designed specifically for C/C++.

After you have a code-running package that suits you, you can use flex-tool-bar to set up a button.

For it to autocorrect and have intelisense

autocomplete-clang will give you predictions.

0 Likes

#7

linter-gcc is not working though I tried it and it is not working at all :frowning: Any idea how to fix this

0 Likes

#8

image

This is the error I am getting

0 Likes

#9

Have you installed MinGW?

0 Likes

#10

Yes I have and it is located in the directory as specified in the image. I have installed MinGW-w64 (since I wanted the 64 bit compiler).

0 Likes

#11

NEvermind @DamnedScholar, Linter-gcc is working :slight_smile: But I sitll need help setting up with the snippets please?

0 Likes

#12

Script is a great plugin for running code
CMD-i on Macs runs your code
I use it for Python all the time.

0 Likes

#13

I use cpp14 and nuclide, it covers very much of what I would expect from an IDE (the debugging is a little buggy), if you use CMake there is build-cmake.

I use more packages but these give a pretty good c++ support.

The ‘play’ button is a little more complex, I use the Nuclide terminal and run manually in a terminal inside atom.

0 Likes

#14

I’ve been using Atom for multiple years now, but never found the tools that support c++ that great. I just stumbled across this thread and figured I’d ask if anyone has found anything better than what they’re using here? I haven’t tried most of these items yet, but figured I would ask before going on the hunt.

I also code in Rust. The IDE rust package is phenomenal. Wishing c++ had something that nice, but the Rust IDE package is made by the Rust devs, while there seems to be no official c++ package support.

0 Likes

#15

There is haxe and some atom haxe packages.

1 Like

#16

There’s a new language server for c languages and swift. I’ll create an IDE package for c++ (which should work similar to ide-rust) and try it out. Once that’s working, would you be willing to try it out?

0 Likes

#17

ABSOLUTELY! I’m 100 percent behind helping to test this! The ide-rust package is phenomenal, I would be amazing to have one similar for C++, if it is possible. Let me know of any details of how I can help out! :slight_smile:

2 Likes

#18

Great! I certainly hope that I didn’t get your hopes up. Those new LSP for those languages was created by Apple. Currently, it only supports Linux and Mac. No windows support :grimacing:

Still good?

0 Likes

#19

I mainly run Mac, so all good here! :slight_smile:

1 Like

#20

Yay - I’ll see if I can make the package tomorrow.

0 Likes