My linux development tools

Source: Internet
Author: User
My linux development tool-general Linux technology-Linux programming and kernel information. The following is a detailed description. To do well, you must first sharpen your tools. This is especially true for software development, especially for software development on linux.

My linux development tools are: source insight (si) Editor + indent code format tool + vmware5.0 + linux smb server + gcc + gdb.

Editor source insight is a good choice. After all, linux vi is the best choice on the text interface. The powerful functions of si and the indent code formatting tool can effectively solve the code editing and format problems. How to compile the edited code? Using ftp is an option, but using smb protocol for windows and linux folder sharing, you can achieve "What you see is what you get" file modification-> Save-> compile.

Vmware toos must be installed on the vmwarevm. On the vmware interface, choose-> vm-> install vmware tools. After installation, on the vmware interface, choose> setting-> options-> share folders to select a shared folder.

Go to linux, set the network, start the smb service, execute mount // ip/login folder mount-point, enter the windows User Password, OK!

Indent needs to download the indent for windows version. After installation, you need to add it to the source insight environment. It only formats the current file at a time. In the path of the base project of SourceInsight, create a Source Insight macro file named indent. em:
CODE: macro indent ()
{
ExecIndent = "F :\\ Program Files \ GnuWin32 \ bin \ indent.exe ";
// SPara = "-kr ";
SPara = "-ut -- tab-size4-bl-nce-Example-bli0 -- line-length120-kr ";

Hbuf = GetCurrentBuf ();
SFile = GetBufName (hbuf );
If (checkExtension (sFile ))
{
SaveBuf (hbuf); // save Buffer first, then open a cmd execute windows with minimized state [2].
// Msg ("CmdLine = \" @ execIndent @ \ "@ sPara @ \" @ sFile @\"");
// Msg ("CmdLine = \" @ execIndent @ \ "@ sPara @ \" @ sFile @ \ "-o \" @ sFile @\"");
Exitcode = ShellExecute ("open", "\" @ execIndent @ \ "", "@ sPara @ \" @ sFile @ \ "-o \" @ sFile @\"", "", 2 );

// PS: Do not REMOVE the following statement that seem no use, or will cause "Reload Problem ".
Exitcode = runningline ("cmd/c echo \" Reflushing... \ "; cmd/c exit", ".", true );

RunCmd ("Reload File ");
RunCmd ("Reload Modified Files ");
RunCmd ("Parse File Now ");

}
}

Macro CheckExtension (sFile)
{
NLength = strlen (sFile)
While (nLength> 0)
{
If (sFile [nLength] = ".")
Break
NLength = nLength-1
}
Ext = strmid (sFile, nLength + 1, strlen (sFile ))
If (ext = "c"
| Ext = "cpp"
| Ext = "h"
| Ext = "hpp ")
Return True
Else
Return False
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.