Sign inSign up

docker5048/vscode_cpp

By docker5048

Updated over 6 years ago

A cpp/C++ development environment used with visual studio code (vscode)

Image
0

10K+

docker5048/vscode_cpp repository overview

A cpp developement envrionment.

ubuntu LTS 20.04. Installed with gcc gdb ssh server. Used with vscode.

Usage:
  1. launch the container,bind the container port 22 to your local host
  2. in container's bash, command "service ssh start" , command" passwd" to set a root password, recommend that copy your public key into containers to login without password
  3. vscode install extension: Remote Development
  4. in vscode click left side bar "Remote Explorer" and config ssh connect
  5. create a folder as your project folder, others things (config .vscode) are like on your own machine.
一个C++ 开发环境
简要使用说明:
  1. 运行容器,把容器的22端口绑定到你的主机端口上(任意一个端口)
  2. 在容器bash,运行命令"service ssh start", "passwd"(指定本次root密码),建议上传公匙文件免登录
  3. vscode里安装插件 Remote Development
  4. 点击左侧的Remote Development图标,在里面配置ssh连接
  5. 要是成功了,其他的就和本地环境上一样了
  6. 参考https://blog.csdn.net/weixin_45646006/article/details/105021237

Tag summary

Content type

Image

Digest

Size

286.7 MB

Last updated

over 6 years ago

docker pull docker5048/vscode_cpp