Skip to content

Install vscode on ubuntu

Yanrui Ma edited this page Dec 8, 2020 · 2 revisions
  1. sudo snap install --classic code
  2. Install c++ and cmake tools extensions
  3. After installing gcc and other tools and libs, open the workspace directory, when prompted, pick the gcc location
  4. In settings, search cmake, pick cmake tools, for "workspace" (vs "user") settings, change "build directory" (the default is build subdir under the workspace, which is not what we want) and fill in the "config settings", such as "DESTDIR", and other settings and toggles as you would want:
    "cmake.configureSettings": {
    
        "DESTDIR": "/home/mayx/git/run",
        "INCLUDE_PLUGINS": "no",
        "USE_LIBMEMCACHED": "no",
        "RUNTIME_USER": "mayx",
        "CMAKE_BUILD_TYPE:STRING": "Debug",
        "USE_CPPUNIT": "yes"
    }