We know that programmers who often develop code under Windows will feel uncomfortable writing code under Linux (if they are very familiar with VI and GDB, let alone others ), however, some programs must compile and generate executable files in Linux, so some writers will talk about it. I can program vs in windows, and then the code is automatically updated to the project under Ubuntu, in this way, Windows programmers can undoubtedly improve their work efficiency. Next, we will introduce how to associate the source files under Windows to Ubuntu. When either side changes, the other side also changes accordingly.
1. Open the vmwarevm (I use VMware. This function should be available if virtual box is used)
2. There is a powered on green triangle button in the left column. Ubuntu is displayed under this button. Right-click Ubuntu and choose settings. A setting panel is displayed.
3. Set the two tabs "hardware" and "option" on the top of the Panel. Click the "option" tab and select "Shared Folders". Then, the corresponding information appears on the right, select the middle among the three radio buttons on the right-> always enabled
4. There is an add button below, and then click, select the directory under Windows that you want to associate, and finish. In this step, we have joined the files under the window to Ubuntu. (A copy of a Windows file is generated under Ubuntu)
5. Some may ask where the copy is stored in Ubuntu. After all, I will continue to explain where the related items are stored in Ubuntu.
6. Open Ubuntu and find a folder named MNT in the file system. Open this folder and you will find that there is a file directory identical to that under windows.
7. Many people have come to understand what is going on here. But some people may say that I don't want to put the associated file into the system file, and I want to put it in my own directory, which is also very easy to do. It can be done easily with commands under Linux. Terminal. Use the ln command. The usage is as follows:
Ln-S/mnt/HGFS // home/your own directory
Now you can go to your own directory and check that there is a copy of the files under windows.