TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Best dev environment for C in 2024?

8 点作者 labarilem5 个月前
Accepting suggestions about anything: IDEs, compilers, editors, editor extensions, etc.

11 条评论

ostaquet5 个月前
There are plenty of good IDE in 2024 for any languages; C included.<p>For the IDE itself, the big choices are between Jetbrains CLion and VSCode. If you are familiar with Jetbrains product for another language, stick to it. Same for VSCode, if you’re use to it, just install the right plugins.<p>I personally prefer Jetbrains product because it is working without selecting&#x2F;installing all the plugins. Some people likes to tweak their environment. So, I don’t use a lot of plugins on the IDE.<p>I use VSCode only when I have multiple stack in the same project (typically Flutter project which include the Dart part and the native part). In that case, VSCode is more practical.<p>In the embedded world, there is also Kiel for ARM embedded development. (<a href="https:&#x2F;&#x2F;www.keil.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.keil.com&#x2F;</a>). I was never be able to use it. It is really unnatural to me but a lot of embedded C developers love it.<p>Regarding the dev tools, I prefer to use tools that are multi platform and widely used. So, the dev tools include CMake, make and GNU C compiler. It is a pretty common toolkit that covered my needs so far.<p>Unit tests are written with Unity Test Framework (<a href="https:&#x2F;&#x2F;github.com&#x2F;ThrowTheSwitch&#x2F;Unity">https:&#x2F;&#x2F;github.com&#x2F;ThrowTheSwitch&#x2F;Unity</a>). It is simple and allow to be executed on the target if required; which is practical for embedded development.
speedgoose5 个月前
I enjoy VSCode&#x2F;VSCodium, with some vim emulation, because I switch a lot between programming languages and stacks. You can go a long way with VSCode and the right language server.<p>But it’s mostly a matter of personal preferences and you should take the time to test the common environments. Perhaps you like CLion more, or neovim, or Visual Studio Pro on windows. Who knows.
评论 #42349492 未加载
lemonwaterlime5 个月前
Here&#x27;s a couple of tooling posts about modern C development:<p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;xave&#x2F;modern-c-vim-dev-env">https:&#x2F;&#x2F;github.com&#x2F;xave&#x2F;modern-c-vim-dev-env</a><p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;xave&#x2F;modern-c-vimspector-debugger-tutorial">https:&#x2F;&#x2F;github.com&#x2F;xave&#x2F;modern-c-vimspector-debugger-tutoria...</a><p>Otherwise, the suggestions in this thread so far are great.
gregjor5 个月前
Can you give more specific criteria than “best?”<p>Visual Studio seems very popular and has everything one needs for writing and debugging C code, but only runs on Windows and costs money.<p>vim + git + gcc + make + gdb another popular set of tools, more portable and free.<p>The “best” environment or set of tools will depend on your skills and patience, and likely on the kind of development you intend: embedded code has different constraints than desktop application code, for example.
评论 #42349487 未加载
gjadi5 个月前
Embedded developer and longtime emacs user here.<p>For code navigation: If the tool chains provides the file compile_commads.json, then I use the built-in LSP: eglot. If not, then universal-ctags to generate TAGS file.<p>For debugging, I use ozone when JTAG is available, if not, back to miserable printf debugging or worse.
racenis5 个月前
On Windows I would use Notepad++ and MinGW.<p>On Linux I would use vim and gcc.<p>C is so simple that you don&#x27;t really need fancy IDE to write it.
pestatije5 个月前
Visual studio
Hashex1295425 个月前
I feel XCode is really good for C, C++ programming.
wizzerking5 个月前
Not Xilinx Vitis that is for sure The IDE sucks rocks
评论 #42346037 未加载
triilman5 个月前
for terminal editors, I&#x27;m using helix I am using doom emacs too.<p>for the runner I want to try &quot;just&quot; instead &quot;make&quot;.
j4nek5 个月前
i am still using vim + git + gcc + make