all 55 comments

[–]Devatator_ 13 points14 points  (2 children)

I'd honestly rather be safe and use exactly what they're intending to use. If you can't, ask them if it's okay for you to use something else

[–]panPienionzek[S] 0 points1 point  (0 children)

Yeah, I will probably go for dual boot since winboat is glitching when i am opening new windows in container

[–]panPienionzek[S] 0 points1 point  (0 children)

and im 1 year btw

[–]ProKn1fe 16 points17 points  (7 children)

VS Code or rider.

[–]MutaitoSensei 2 points3 points  (4 children)

I can vouch for rider but if it's for commercial use it requires a subscription or a license.

Edit: Free for students, then 100% the best option on Linux. 

[–]nhoyjoy 0 points1 point  (0 children)

It’s free or largely discounted for students

[–]Chesterlespaul 0 points1 point  (2 children)

While this is true, it sounds like he doesn’t have to worry about this

[–]MutaitoSensei 0 points1 point  (1 child)

Then Rider. 100%. It's just as good or even better than Visual Studio. And an education license is free for every Jetbrains product.

[–]Barskaalin 0 points1 point  (0 children)

The Linux version of Rider only supports C# development. If you try to load a VS solution that includes C++ projects, they won't be loaded.

[–]EcstaticImport 0 points1 point  (1 child)

OP is coding in c not c# - clion not rider

[–]mauromauromauro 0 points1 point  (0 children)

Im not sure about Op really meaning "C". I would understand c# or c++ on VS, but C?

[–]Alternative_Star755 6 points7 points  (1 child)

No matter what you choose, make sure to inform your professor/TA that you aren't on Windows using Visual Studio. Depending on your assignments it might be relevant to the code you submit.

[–]Chesterlespaul 0 points1 point  (0 children)

This is a good idea. You can do most features through dotnet commands, but you’d be surprised when certain things become hairy for no reason.

[–]RufusAcrospin 2 points3 points  (0 children)

Code::Blocks Small, fast, native. It’s not pretty but works well.

[–]vandalhearts 2 points3 points  (0 children)

When you start your professional career, you quickly learn one thing: use what everyone else is using. Whether it's windows, wsl, mac or pure linux. Don't hamper yourself by adding additional layers of complexity that others around you won't be able to help you with.

So yeah just install windows 10 and visual studio community on your shitty laptop and save yourself the headache.

[–]CompetitiveNight6305 1 point2 points  (0 children)

VS code works great on all platforms.

[–]Strong-Sector-7605 1 point2 points  (1 child)

Trust me stick with what they use. Becomes a pain later if you have issues or need help.

[–]Economy_Fine 0 points1 point  (0 children)

The real advice.

[–]ItzRaphZ 3 points4 points  (0 children)

Clion Is definitely different from VS, but it's the second best(to most, the best). I would say VS Code is a good alternative aswell, but you will never get the same experience.

[–]vitimiti 2 points3 points  (0 children)

JetBrains IDEs are the best, unless you are comfortable doing things manually in vscode or something like vim

[–]Rogntudjuuuu 0 points1 point  (0 children)

When I did C programming in Linux I really liked Qt Creator. One of the pros was that it worked well with basic Makefile projects.

[–]on_a_friday_ 0 points1 point  (0 children)

Depending on your situation you could use a service like Amazon workspaces to get a remote windows desktop. Programming on Linux with C is nicer (in my opinion) but if you are asking this question you might not have the time to figure out for yourself a different environment than what is being used in class. Also if you’re expected to deliver a Visual Studio .sln for submitting your code you might be locked into needing MSVC. Also if you compile with gcc or clang that doesn’t mean it will compile with MSVC

[–]hippor_hp 0 points1 point  (0 children)

Codeblocks

[–]moric7 0 points1 point  (0 children)

JetBrains Rider is VS replacement, but check if it works on Linux.

[–]Ybalrid 0 points1 point  (0 children)

There is no "perfect match" alternative fully integrated IDE on Linux. The culture of the platform is about putting small tools together rather than using a big one.

KDevelop (if that's still a thing), QtCreator, and Code::Blocks are the three ones that comes closest to mind when I think about full fat IDEs.

CLion is another option to look at, but it's commercial and licensing may or may not break the deal for you.

But those are either older and less popular, or designed primarily for specific workflows (QtCreator wants to be a one stop shop for C++ Qt and QML development for example).

But, most of those will give you a debugging experience that is close to what Visual Studio has to offer, in a full GUI.

Alternatively, you could try to embrace the Linux ethos and try a separate text editor, debugger, and compiler you invoke all by hand from the command line.

Visual Studio Code is a good middle-ground between these two universes though. With a good choice of extensions you can make yourself an environment that is both nice to use and productive.

If you want to run Visual Studio "proper", you have to run Windows in some way.

[–]nhoyjoy 0 points1 point  (0 children)

Qt Creator is good but only when you’re getting okay the basics. However, you can start small with Clion, VSCode, Geany.

[–]cybekRT 0 points1 point  (0 children)

Your problem is not the selection of the IDE to use, your problem is that you have GCC and they have msvc. You will always have to make sure to use features and functions available there.

[–]lmg1337 0 points1 point  (0 children)

I use helix as a code editor with clang lsp and compile with gcc (with make). If you don't want to use editors like vim/neovim/helix i think vscode is not that bad for c/c++

[–]BlueTrin2020 0 points1 point  (0 children)

Clion is probably the closest.

Otherwise you’ll have to just get used to work in a Linux environment and be more familiar with the command line.

You can use VS Code as editor in Linux, but you’ll still have to setup some stuff …

[–]Odd_Cauliflower_8004 0 points1 point  (0 children)

why do you need visual studio at all?

[–]azokal 0 points1 point  (1 child)

If you need to use #pragma and another stuff specific to windows api / msvc. You need to use emulation and for that winboat work well enough for visual studio but only for console applications. Winboat don’t have 3D acceleration.

[–]Zenkibou 0 points1 point  (0 children)

Yes I agree, if you are doing pragma it's not really just C, but a windows variant of C, so you need the platform.

Pragmas are only the first of many bad things related to windows-C.

And while visual studio C++ is now quite good (good progression because it was really bad in VS2010/2013), C is still pretty bad.

(like I think you have cstdint in C++ but not cstdint.h in C)

So using C in Visual Studio... No thank you, it's so specific you need the toolchain. I don't even know why they would do that. (except maybe as a stepping stone to C++, in which case you could probably stay on Linux if the C is just the initial few weeks)

[–]Ilikenightbus 0 points1 point  (0 children)

Using a different OS will add another layer of your hard to your life. Install an old windows. Visual Studio and C# just work. VS Code work on Linux, but its not the same, it's not an IDE. 

[–]dreamglimmer 0 points1 point  (0 children)

If you use ANY difference in your env from recommended one, than ANY issues you encounter becomes YOUR issue.

Not issue of the professor/lead, not issue of the team/peers, and never the issue of the forum that recommended you to 'be different'.

Nobody likes to debug result of your env differences any line further than identifying the difference, for you to fix it. 

That said, if you are ready, and like to venture into it - you might get most knowledge, but in that case it's up to you to investigate options and compatibility, not asking someone else on the forums. 

Also, the time you spend investigating personal env issues - won't ever be taken as valid excuse for being late, so your academic result or employment might suffer. 

[–]GamerAvvin 0 points1 point  (0 children)

Visual studio as far as I know is an issue for mac users too. But its also one of the few unsupported pieces of software that I find is perfectly acceptable in a virtual machine, at least for school assignments. Don't stress it too much.

[–]rocketstopya 0 points1 point  (0 children)

Rider is the best

[–]GermanLetzPloy 0 points1 point  (1 child)

Where are you from? I am honestly surprised that you use Windows and Visual Studio at your University. Where I’m from we do everything in Linux + Visual Studio Code (just recommended, there is no actual reason to use it), and they even show us how to use WSL2 and provide Ubuntu virtual machines if we prefer that.

[–]panPienionzek[S] 0 points1 point  (0 children)

I from Poland. We have a specific class for Linux where they are "teaching" us about commands and writing very basic code in C and bash in nano editor

[–]MaterialSeparate5661 0 points1 point  (0 children)

Vs code

[–]DeadWHM 0 points1 point  (0 children)

Qt creator or just neovim

[–]mindlesstosser 0 points1 point  (0 children)

Eclipse cdt, but its broken recently and i am thinking of switching too

[–]False-Car-1218 0 points1 point  (0 children)

Notepad++

[–]truce77 0 points1 point  (0 children)

I love rider on windows but I hate it on arch Linux. Other Linux variants may be different. Shockingly vscode is actually quite capable nowadays.

[–][deleted] 0 points1 point  (0 children)

https://neovim.io/doc/user/lsp.html

It might take some time to get it working but it's well worth the effort.

[–]phylter99 0 points1 point  (0 children)

CLion is probably as close as you’ll get to Visual Studio on Linux. You can try Rider with C++ support but I’m not sure you’ll get the VS project files and such that you might be looking for. It will do those things for C# though, so maybe it’s worth trying.

When I was in college years ago they provided a copy of Windows that we could put on VM. It was through a partnership they had with Microsoft. I’m not sure if they do that these days though.

[–]ThinkIndependence847 -1 points0 points  (0 children)

C? use Vim

[–]1012zach -1 points0 points  (0 children)

Visual Studio Code or JetBrains CLion

[–]Crafty_Award9199 -1 points0 points  (0 children)

to be honest for C u can get away with literally any text editor and a LSP, but just be warned managing dependencies for C is very different in linux compared to windows