[英]Efficient method of writing C++ code in Windows IDE and compiling in Linux terminal?
First of all, it's all about maximizing the productivity as a c++ programmer. 首先,这是关于最大程度地提高作为c ++程序员的生产力的方法。 My regular work is to use Windows ssh client such as xshell
to log in to remote linux machine via ssh and do many linux work there. 我的常规工作是使用Windows ssh客户端(例如xshell
通过ssh登录到远程linux机器,并在那里进行许多linux工作。 Imagine I want to set up a big C++ project, and now I'm faced with a trouble. 想象一下,我想建立一个大型的C ++项目,但是现在我遇到了麻烦。
Here I want to exclude some options such as samba
, configuring many plugins for vim, or just buy a Mac. 在这里,我想排除一些选项,例如samba
,为vim配置许多插件,或仅购买Mac。 And if I write in Windows, it's undesirable to copy the whole contents to remote machine every time syncing with it. 而且,如果我使用Windows编写,则每次同步时都将全部内容复制到远程计算机是不可取的。
Any ways or tools to make this process easier and productive ? 有什么方法或工具可以使此过程更轻松,更高效?
Here are some options: 以下是一些选项:
vncserver
for that). 这取决于您要使用的桌面环境,诸如icewm之类的东西就可以了(Linux上的命令是vncserver
)。 Warning: If you're using VNC, be aware that the standard VNC implementation doesn't provide encrypted connection. 警告:如果您使用的是VNC,请注意标准VNC实现不提供加密连接。 So you should use something like ssh tunnel (with putty, or similar) from Windows to Linux, then tunnel your VNC connection through it. 因此,您应该使用从Windows到Linux的ssh隧道(带有腻子或类似的东西),然后通过它建立VNC连接。
Here is how I work in this situation: 在这种情况下,我的工作方式如下:
commit
your changes and git push
commit
更改并进行git push
git pull
& build ( make
?) 在您的Linux Shell中: git pull
&build( make
?) I just use VirtualBox: 我只是使用VirtualBox:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.