Use in a virtual machine environment Linux Write and read code , I've been through Xshell utilize ssh Log in to the virtual machine to use it from the command line vim To carry out . Now there is a need to read open source code , although vim+ctags+cscope The job can be done , But for me, it's easier to use the mouse to operate the window , So I hope to be able to Windows Read and modify in the environment Linux Open source code for virtual machines .

There are many ways to fulfill this requirement , Here is a relatively simple way :SftpDrive+SourceInsight. among SftpDrive Is used to SSH The server is mapped to Windows Network drive , and SourceInsight For code reading and writing , The code here is Nginx Source code for example ( There is no difference in actual settings ).

because SftpDrive It uses SSH, So mapping objects is not limited to virtual machines . At the same time, make sure that the target you want to map is SSH Service is turned on , Then start SftpDrive, As shown in the figure below :

In order to get full permission to modify all directories , It is recommended to use root Log in , And display the folder selection "Show the entire server". However, you should be very careful when you delete and modify after that .

Set up and Connect, You can see that there is an extra drive letter in the computer , At this time, you can read and write the files in the virtual machine just like manipulating the local files .

More recently , have access to SourceInsight View and modify the source code . because SourceInsight There are a lot of introductions , The following is just Nginx1.4.2 Source code for example, a brief introduction .

Get into SourceInsight, choice Project->New Project, Enter the project name and project data directory ( Not the source directory , It's better to use the local directory ):

The next step is to select the source directory :

Then choose Add Tree That's all right. . Note that sometimes Add Tree You may not be able to add files , If you make sure the filtering options are correct , You can restart the computer and try again .

Other references :

Source Insight Set up a summary

Give Way Source Insight Perfect support for Chinese annotations

Use SftpDrive+SourceInsight Read more about open source code

  1. CWMP Open source research 2——easycwmp Install and learn

    Statement : This article is the open source program code learning and research , Strictly prohibited for commercial purposes . If there are any questions , Welcome to talk to me .( Penguin :408797506) All the notes and code in this article can be found in csdn download :http://download.csdn.n ...

  2. CWMP Open source research 1—— The opening work

    Original works , Reprint please indicate the source , Illegal reproduction is strictly prohibited . If there is a mistake , Please leave a message ! email:40879506@qq.com Statement : This series involves open source code learning and Research , Strictly prohibited for commercial purposes . If there are any questions , Welcome to talk to me .( penguin ...

  3. c Open source code

    Reading good code is a shortcut to improve the accomplishments of developers ……1. WebbenchWebbench It's a linux Under the use of a very simple website pressure testing tool . It USES fork() Simulate multiple clients accessing our settings at the same time URL, The test site is ...

  4. Use doxygen Static analysis of open source code

    doxygen Is a tool to generate open source code documentation , Because you don't need to compile the source code , It's also very convenient for code analysis . One . install sudo apt-get install graphviz sudo apt-get inst ...

  5. [ primary ] corePlot Class library and iOS Comparison of the usage of the built-in class library ( A lot of open source code has this feature )

    —— What human beings rely on most is their own “ Past experience ”.—— Let's take a look directly at corePlot Class library and iOS The implementation of setting text display format for a control in its own class .   * corePlot Class library , Format a title for an object , ...

  6. The biggest open source code sourceforge brief introduction And video and audio commonly used open source code

    All the audio and video source code here :http://sourceforge.net/directory/audio-video/os:windows/, You can download the analysis , Please email me if you don't understand the video , Help you analyze . 0. video ...

  7. CWMP Open source research ——git Code engineering

    Original works , Reprint please indicate the source , Illegal reproduction is strictly prohibited . If there is a mistake , Please leave a message ! email:40879506@qq.com Statement : This series involves open source code learning and Research , Strictly prohibited for commercial purposes . If there are any questions , Welcome to talk to me .( penguin ...

  8. A color band that can be positioned at will Toast—— Open source code Crouton Simple use

    Today in the code that the company requires , It is required that the prompt displayed can be more diversified , Not simply Toast word , The first idea must be to customize View ah , As a result, I found that there is such an open source code ——Crouton. Several times tossing , Find this thing ...

  9. GitHub + VSTS Two way synchronization of open source code

    GitHub It's already the global base of open source code , From the following statistics, you can see that only javascript stay github There are more than 32 Ten thousand activities repo. Many developers share part of their code with github Open source on , One ...

Random recommendation

  1. nginx+tomcat https practice

    1. install ssl' certificate Use Let's Encrypt Free certificate of : Download source code : git clone https://github.com/letsencrypt/letsencrypt I'm alicloud ...

  2. Write a simple MVC frame ( The second edition )

    One .ASP.NET MVC Review of the core mechanism stay ASP.NET MVC in , The most important thing is “ Routing system ”, And the core of the routing system comes from a powerful System.Web.Routing.dll Components . In this System.W ...

  3. 【 Nine degrees OJ】 subject 1111: Word substitution

    subject 1111: Word substitution Title Description : Enter a string , End with a carriage return ( String length <=100). The string consists of several words , Words are separated by a space , All words are case sensitive . Now we need to replace one word with another one ...

  4. 【 turn 】【MySQL】mysql adopt bin-log How to recover data

    mysql in bin-log stay mysql It is not opened by default , We need to open it first mysql Turn on bin-log function , And then through the backup bin-log Database recovery . The specific operation is through mysqlbinlog this ...

  5. Python Introduce 、 install 、 Use

    Python Introduce . install . Use hamal : Yin Zhengjie Copyright notice : Original works , Declined reprint ! Otherwise, the legal liability will be investigated . One .Python Language introduction Speaking of Python Language , I have to talk about its founder Guido van Rossu ...

  6. du -sh Directory name Check the catalog size

    du -sh Directory name Check the catalog size df -h Check disk usage

  7. AJAX Synchronous and asynchronous

    Today, let's talk about AJAX Synchronization and asynchrony in . Actually , As far as I understand , The difference between synchronous and asynchronous is whether there is waiting in the process of program execution . Sync : It means js The code is loaded into the current AJAX When , Will wait for AJAX Start loading other code after code execution ...

  8. windows Next exfat Unable to write repair

    In order to achieve mac And windows File sharing , Format the mobile hard disk as exfat 了 , But in osx After you put the file in , stay windows An error occurred while tightening for read and write , Prompt use chkdsk Amendment , Here are the correction steps . ①wi ...

  9. Python - Seaborn visualization : A few tips of graphic personalization

    1 summary In the visualization process , You are often dissatisfied with the default drawing effect , Hope to personalize all kinds of settings . Through a simple example , To introduce seaborn Personalization during Visualization . Including common settings , Such as : Set chart display colors Setup diagram ...

  10. Spring Configuration supplement

    # :Spring Configuration supplement ## One : Flexible configuration DataSource (1)    Use the properties file to configure the data source (2)    Use JNDI data source (3)    Spring Medium Bean The scope of , Sin ...