1.安装VScode
参考:官网教程 :Running Visual Studio Code on Linux
安装命令:Centos7上安装vscode和ssh_vscode连接centos_雪中奇侠的博客-CSDN博客
centos7下安装vscode_centos安装vscode_你若安好我便天晴的博客-CSDN博客
root目录下运行报错1:
[root@localhost ~]# code
You are trying to start Visual Studio Code as a super user which isn't recommended. If this was intended, please add the argument `--no-sandbox` and specify an alternate user data directory using the `--user-data-dir` argument.
root目录下运行报错2:暂未解决
[root@localhost ~]# code
[7559:0713/114129.698208:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
[main 2023-07-13T03:41:29.802Z] update#setState idle
[7578:0713/114134.089439:ERROR:ssl_client_socket_impl.cc(982)] handshake failed; returned -1, SSL error code 1, net_error -200
[main 2023-07-13T03:41:59.803Z] update#setState checking for updates
[main 2023-07-13T03:41:59.913Z] update#setState idle
2.eclipse安装
参考视频:09-Eclipse的配置使用以及测评(C++视图)_哔哩哔哩_bilibili
2.解压文件,然后进入eclipse,双击可执行文件就行,只会让你选择文件存放目录,我的是
/root/eclipse-workspace
3.设置桌面快捷键
参考:CentOS 8搭建Linux下Eclipse开发环境_eclipse-java-2021-12-r-linux-gtk-x86_64.tar.gz_小C的快乐星球的博客-CSDN博客