Skip to main content

Tips

Microsoft's C/C++ extension (cpptools)​

The cpptools extension is not available in open-source builds of VS Code. Download the .vsix from the official releases, or use this script:

curl -sSL https://gist.github.com/davidliyutong/dad5e8de58ad86d2e0b7ec92ffb79ae7/raw/072f76610c1b3f1080a4024b43344fd62fe84e1b/download-cpptools.sh | bash

The script saves the latest version to ~/Downloads/cpp-tools.vsix. Install it from the Extensions view with "Install from VSIX".

Out of memory when installing torch​

pip can be killed for exceeding the workspace's memory limit while it caches the wheel. Install without the cache:

pip --no-cache-dir install torch

See pytorch/pytorch#1022.