-
Notifications
You must be signed in to change notification settings - Fork 0
Install vscode on ubuntu
Yanrui Ma edited this page Dec 8, 2020
·
2 revisions
- sudo snap install --classic code
- Install c++ and cmake tools extensions
- After installing gcc and other tools and libs, open the workspace directory, when prompted, pick the gcc location
- 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"
}
Even good memories can't match a beat-up pencil -- an old saying