wsl并非最佳实践

virtualbox上使用linux server版才是最佳实践。速度快、无bug。

当然,这样做的话,virtualbox里面是非常不方便复制粘贴的,因此ssh连接virtualbox里的linux server, 连接里的是通过路由转发实现ssh的。但其实可以直接把网络设置成为桥接模式,效果相当于多了台设备连接路由器、进入内网

接着再在Clion等的toolchain里设置remote host, 不要太爽

另外clion还可以直接打开remote的文件、文件夹

Access a remote server
Open the Remote Host tool window by choosing Tools | Deployment | Browse Remote Host from the main menu.
Select the required deployment server from the list. The tool window shows a tree view of files and folders under the server root. If no relevant server is available in the list, click.