The same code editor/IDE for both Windows/Linux.

Status
Not open for further replies.

phearnomore

Ars Scholae Palatinae
1,100
I've recently looked for a programmer editor that I can use to code in C(++) which works on Linux using its native compiler (the one from GCC, for instance) and on Windows using Visual Studio compiler. It came down to SlickEditor. Just to clarify: I do not want to use MinGW nor Cygwin. I've read some articles about Microsoft Code Editor but it's still unclear (for me at least) whether it can be used (or whether it will provide such a functionality in the future) just as SlickEditor. To sum up: One editor/IDE for both Windows and Linux which can be used with both Visual Studio compiler and Linux (*BSD, etc.) compiler (GCC, LLVM). Ideas?

(I'm not promoting SlickEditor. In fact, I'd rather use a different editor since SlickEditor is way too heavy for my needs)
 
D

Deleted member 43669

Guest
Hum, unless you really want IDE-like stuff, any editor will do. You can probably hook up any old editor to two different toolchains without much issues.

For Intellisense-like stuff, visual debugging and the like... that's more work. CTags is supported by pretty much any popular editor, but is somewhat dumb and old hat. There's the clang complete stuff which a quick Google reveals Emacs and vim plugins for, and I'm sure there are more for other popular editors.
 

Shuffy

Ars Tribunus Militum
1,687
I try to find an editor that works best for the environment I'm coding for. If this means I need several IDEs or editors, so be it.

However, I find a plaintext editor to work in most situations. I've taken a liking to Atom since its cross platform, but the only problem is its based on Chromium, so it's a little heavy for a text editor. But for free and the features you get, I think that's a small trade off. Since you're working with Linux, I highly recommend at least getting familiar with vim or emacs simply because of their ubiquity.
 

phearnomore

Ars Scholae Palatinae
1,100
Thanks for suggestions. I chose to write code editor/IDE because it can sometimes be interchangeable as vi(m) or emacs are called editors even by their creators ("GNU Emacs is an extensible, customizable text editor—and more.") yet they often considered full-fledged IDEs. Right now I use nano on Linux and, well, Notepad on Windows. :) That's why I was looking for an editor that's more advanced, cross-platform and can optionally become a full IDE. Eliminating the need for a compiler/debugger integration there are way more options. And this is probably the approach I'm going to take. Once again, thanks for your input.
 

phearnomore

Ars Scholae Palatinae
1,100
[url=http:/civis/viewtopic.php?p=30178903#p30178903:1uvqpgzn said:
Alamout[/url]":1uvqpgzn]The JetBrains family of IDEs is cross-platform. I haven't used CLion which is their C/C++ focused IDE, but if it's similar to the others I would assume it's pretty good.

I considered CLion but there is no option (the last time I checked) to integrate Visual Studio compiler on Windows. One could integrate a minGW-based compiler but I'd like to stick to the Microsoft one.
 

Shuffy

Ars Tribunus Militum
1,687
[url=http:/civis/viewtopic.php?p=30178907#p30178907:2x8krtvx said:
phearnomore[/url]":2x8krtvx]Thanks for suggestions. I chose to write code editor/IDE because it can sometimes be interchangeable as vi(m) or emacs are called editors even by their creators ("GNU Emacs is an extensible, customizable text editor—and more.") yet they often considered full-fledged IDEs. Right now I use nano on Linux and, well, Notepad on Windows. :) That's why I was looking for an editor that's more advanced, cross-platform and can optionally become a full IDE. Eliminating the need for a compiler/debugger integration there are way more options. And this is probably the approach I'm going to take. Once again, thanks for your input.
If you're on Linux and you want to debug your C/C++ apps, there's a tool called ddd that is basically gdb with a GUI front end. Play around with it, see how you like it. And you probably don't want to hear this, but if you are working with Linux a lot, you should look into compiling your code using a make file and the "make" command. It may take a bit to wrap your head around, but you'll have a whole lot of control over your compiling options and you don't have to rely on the IDE if you're using that to compile your code.
 
Sublime Text 3 is my go-to cross-platform editor.

https://atom.io/ is the new hotness, but it still feels slow and clunky.

Microsoft has Visual Studio Code if you want to stick to the Microsoft way of doing things: https://code.visualstudio.com/

CLion is the obvious answer for IDEs, but I'm not aware of any solutions for the VS compiler toolchain you want to use.
 

phearnomore

Ars Scholae Palatinae
1,100
Thanks again for your suggestions. I've used "make" mostly as in "./configure; make; make install". Maybe it's time to see what's under the hood. ;) I've never heard of a Data Display Debugger. Sounds interesting. And as far as Sublime Text goes, what concerns me is the fact that the latest version is still in beta. The latest *stable* version was released more than two years ago. I wouldn't like to pay for software that may not reach a stable version at all.
 

Apteris

Ars Tribunus Angusticlavius
9,589
Subscriptor
And as far as Sublime Text goes, what concerns me is the fact that the latest version is still in beta. The latest *stable* version was released more than two years ago. I wouldn't like to pay for software that may not reach a stable version at all.
The Sublime Text 3 beta is still better than Sublime Text 2, and 2 was already a very fine editor. 3 still being beta is mainly due to it having only one developer, who is working on it part-time.

If you like it -- and I do, even though it's not the best editor for every scenario, but then again what is -- buy it.
 

phearnomore

Ars Scholae Palatinae
1,100
[url=http:/civis/viewtopic.php?p=30200109#p30200109:1di7e681 said:
Apteris[/url]":1di7e681]
And as far as Sublime Text goes, what concerns me is the fact that the latest version is still in beta. The latest *stable* version was released more than two years ago. I wouldn't like to pay for software that may not reach a stable version at all.
The Sublime Text 3 beta is still better than Sublime Text 2, and 2 was already a very fine editor. 3 still being beta is mainly due to it having only one developer, who is working on it part-time.

If you like it -- and I do, even though it's not the best editor for every scenario, but then again what is -- buy it.

It's definitely on my top5 list:

1.) Atom
2.) CLion
3.) SlickEditor
4.) Sublime Text 3
5.) UltraEditor

to try out (the list is arranged alphabetically). I am, however, biased as I favour software written in (Objective)C(++). So Slick (written in C), Sublime (written in (Objective)C++) and Ultra (written in C++) are the first to be tried out.
 

Jonathon

Ars Legatus Legionis
17,644
Subscriptor
[url=http:/civis/viewtopic.php?p=30206559#p30206559:399snl6r said:
Ravensroke[/url]":399snl6r]What's wrong with using the best available editor or IDE in both environments and editing the keyboard shortcuts to be similar? Would save a lot of headache and free you from using mediocre tools.
The advantage of the cross-platform editors is that they tend to attract large, diverse communities and develop a richer community-developed plugin ecosystem. Which is a big deal if you're running one of the free/inexpensive editors like Sublime or Atom where the developers are leaving more advanced features to plugins.

I'm a Sublime 3 user myself, but I'm considering moving over to Atom now that they're starting to work through some of their performance issues. Sublime's author has a habit of disappearing (and not updating) for months at a time (and Sublime 3's been in "beta" for nearly three years now). If this were a freeware project, I'd be okay with it, but Sublime's one of the more expensive pieces of development-related software I have on my machine right now-- the lack of support is a problem.
 

phearnomore

Ars Scholae Palatinae
1,100
[url=http:/civis/viewtopic.php?p=30210431#p30210431:21tu04ks said:
Jonathon[/url]":21tu04ks]
[url=http:/civis/viewtopic.php?p=30206559#p30206559:21tu04ks said:
Ravensroke[/url]":21tu04ks]What's wrong with using the best available editor or IDE in both environments and editing the keyboard shortcuts to be similar? Would save a lot of headache and free you from using mediocre tools.
The advantage of the cross-platform editors is that they tend to attract large, diverse communities and develop a richer community-developed plugin ecosystem. Which is a big deal if you're running one of the free/inexpensive editors like Sublime or Atom where the developers are leaving more advanced features to plugins.

I'm a Sublime 3 user myself, but I'm considering moving over to Atom now that they're starting to work through some of their performance issues. Sublime's author has a habit of disappearing (and not updating) for months at a time (and Sublime 3's been in "beta" for nearly three years now). If this were a freeware project, I'd be okay with it, but Sublime's one of the more expensive pieces of development-related software I have on my machine right now-- the lack of support is a problem.

The problem I have with Atom is that it's built on top of web-related technologies (HTML, Javascript, etc.) which may be portable but it kind of feels I'm running software written in Java. That's why I favour editors developed in C(++).
 

Drizzt321

Ars Legatus Legionis
34,922
Subscriptor++
[url=http:/civis/viewtopic.php?p=30212417#p30212417:2d6nqapn said:
Shuffy[/url]":2d6nqapn]That's kind of a silly way to bias software on. If it works, it works.

Well, sorta, but they sometimes aren't as responsive. Trust me, IntelliJ, as great as it is, sometimes hangs and can be a bit of a PITA now and then. Usually just fine after a restart, but that can be a bit annoying. And usually anytime it's trying to do a lot of stuff (like opening a new project and scanning through everything) it's pretty slow and unusable until it's done.
 

phearnomore

Ars Scholae Palatinae
1,100
[url=http:/civis/viewtopic.php?p=30212417#p30212417:uuadmai0 said:
Shuffy[/url]":uuadmai0]That's kind of a silly way to bias software on. If it works, it works.

Well, it's based on the fact that C is my preferred language and it's main strength is being close to the metal and portability. I've never come across (although I haven't run all software in existance) a C(++) software that stutters more than it sometimes has to. I can't say the same thing about web technologies. *But* as Jeff Lebowski would sum that up: "Yeah, well, you know, that's just, like, your opinion, man." ;)
 

gregatron5

Ars Legatus Legionis
13,004
Subscriptor++
[url=http:/civis/viewtopic.php?p=30212417#p30212417:1y1034e8 said:
Shuffy[/url]":1y1034e8]That's kind of a silly way to bias software on. If it works, it works.

Well, it's based on the fact that C is my preferred language and it's main strength is being close to the metal and portability.
While C is (arguably) portable if you're working on CLI or daemon stuff, once you get into windowing systems all bets are off. There is no windowing system glue layer that is both consistent and performant across all operating systems. You're never going to get something consistent across all GUI platforms because all GUI platforms are pretty radically different. If you do find something that's close to consistent, it's going to be because they custom built something and it won't be like any native system. In my experience, Jetbrains has done the best job of this so far.
 

phearnomore

Ars Scholae Palatinae
1,100
[url=http:/civis/viewtopic.php?p=30254385#p30254385:a9ejlhso said:
vafarmboy[/url]":a9ejlhso]
[url=http:/civis/viewtopic.php?p=30212417#p30212417:a9ejlhso said:
Shuffy[/url]":a9ejlhso]That's kind of a silly way to bias software on. If it works, it works.

Well, it's based on the fact that C is my preferred language and it's main strength is being close to the metal and portability.
While C is (arguably) portable if you're working on CLI or daemon stuff, once you get into windowing systems all bets are off. There is no windowing system glue layer that is both consistent and performant across all operating systems. You're never going to get something consistent across all GUI platforms because all GUI platforms are pretty radically different. If you do find something that's close to consistent, it's going to be because they custom built something and it won't be like any native system. In my experience, Jetbrains has done the best job of this so far.

It'd be nice to see a full-blown IDE written using GTK+ (GUI-wise) as it's both C and cross-platform. Gedit and Geany come close but those are rather editors with IDE-like features.
 

Auream

Seniorius Lurkius
46
[url=http:/civis/viewtopic.php?p=30268863#p30268863:16g50hkn said:
phearnomore[/url]":16g50hkn]
It'd be nice to see a full-blown IDE written using GTK+ (GUI-wise) as it's both C and cross-platform. Gedit and Geany come close but those are rather editors with IDE-like features.

The closest I know of to that is Qt Creator: a full-blown cross-platform IDE (written in Qt, not GTK+). Of course, it makes a lot of sense to use it if you're writing C++ code using Qt, but it works just fine for plain-vanilla C++ or C code as well. If you aren't using it with Qt, though, its pretty heavyweight (i.e. it includes a whole bunch of stuff you don't need).

But its completely cross-platform, works on Mac, Windows, and Linux, has all the usual IDE features like visual debugging, project management, refactoring, code completion, source control integration, etc. I use it because I happen to work with Qt projects mostly, but it might be worth checking out (open source version is free) even if you don't use Qt and just stick to plain vanilla C/C++ stuff.
 
Status
Not open for further replies.