跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[C++] VSCode 打开大型 C/C++项目 CPU 占用 100%还残留进程,有办法缓解吗?

发表于

如题,用 VSCode 打开一个大型的 C/C++项目,比如 Chromium/Linux Kernel 这种级别的,右下角一直在那转,尝试索引啥的,这时 cpptools 进程会吃满一个或两个 CPU 核心。

更恶心的是,关闭 VSCode 之后(尤其是用 SSH 连接的情况下),这一两个吃满 CPU 的进程并不会退出,而是一直在那吃,如果这时再重新打开 VSCode ,特别是打开另一个 workspace ,然后又会多一两个进程在那 CPU100%...

这个有办法缓解吗,比如至少配置什么让 VSCode 关闭之后能让这进程消失,或者当没有打开的 C/C++代码( VSCode 还在运行)的时候停止索引,等等。

不想直接禁用 C/C++插件,因为平时打开小项目还是会用到的。

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.