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 } |