ºìÁªLinuxÃÅ»§
Linux°ïÖú

ÎÒµÄlinux¿ª·¢¹¤¾ß

·¢²¼Ê±¼ä:2008-02-04 17:26:42À´Ô´:ºìÁª×÷Õß:zisxvdmc
¹¤ÓûÉÆÆäÊ£¬±ØÏÈÀûÆäÆ÷¡£Èí¼þ¿ª·¢¸üÊÇÈç´Ë£¬linuxÉϵÄÈí¼þ¿ª·¢¸üÊÇÈç´Ë¡£

ÎÒµÄlinux¿ª·¢¹¤¾ßÊÇ£ºsource insight£¨si£©±à¼­Æ÷+indent´úÂë¸ñʽ¹¤¾ß+vmware5.0 + linux smb·þÎñÆ÷ + gcc + gdb.

±à¼­Æ÷source insightÊǸöºÜºÃµÄÑ¡Ôñ£¬±Ï¾¹linux viÊÇÔÚÎı¾½çÃæÉϵÄßËßË¡£ÀûÓÃsiÇ¿´óµÄ¹¦ÄÜ£¬¼ÓÉÏindent´úÂë¸ñʽ»¯¹¤¾ß£¬ºÜºÃµÄ½â¾öÁË´úÂë±à¼­ºÍ¸ñʽÎÊÌâ¡£ÈçºÎ°Ñ±à¼­ºÃµÄ´úÂë½øÐбàÒ룿ÀûÓÃftpÊÇÒ»¸öÑ¡Ôñ£¬µ«ÆäʵÀûÓÃsmbЭÒ飬½øÐÐwindowsºÍlinuxÎļþ¼Ð¹²Ïí£¬Ôò¿ÉʵÏÖ¡°Ëù¼û¼´ËùµÃ¡±Ð§¹ûµÄÎļþÐÞ¸Ä-¡µ±£´æ-¡µ±àÒë¡£

vmwareÐéÄâ»úÐèÒª°²×°vmware toos£¬ÔÚvmware½çÃæÖÐ-¡µvm-¡µinstall vmware tools£»°²×°Íêºó£¬ÔÚvmware½çÃæÖÐ-¡µsetting-¡µoptions-¡µshare folders½øÐй²ÏíÎļþ¼ÐµÄÑ¡Ôñ¡£

½øÈëlinux £¬ÉèÖÃÍøÂ磬Æô¶¯smb·þÎñ£¬Ö´ÐÐmount //ip/sharefolder mount-point £¬ÊäÈëwindows Óû§ÃÜÂ룬ok£¡

indent ÐèÒªÏÂÔØindent for windows°æ±¾£¬°²×°ºó£¬ÐèÒª°ÑËü¼ÓÈësource insight»·¾³ÖУ¬Ëüÿ´ÎÖ»¶Ôµ±Ç°Îļþ½øÐиñʽ»¯¡£ÔÚSourceInsight µÄ base project µÄ·¾¶£¬´´½¨Ò»¸ö½Ð indent.em µÄ Source Insight ºê¶¨ÒåÎļþ£º[code] macro indent()
{
execIndent = "F:\\Program Files\\GnuWin32\\bin\\indent.exe";
//sPara = " -kr ";
sPara = "-ut --tab-size4 -bl -nce -bls -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 = RunCmdLine("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
}[/code]È»ºó´ò¿ª SouceInsight ĬÈ쵀 Base Project£¬µ¹Èë¸ÃÎļþµ½¹¤³ÌÖÐ-¡µrebuild£»È»ºóÔÚsiÖÐ-¡µoptions-¡µkey assignments-¡µmacro£ºindent£¬ÊäÈëÃüÁÈçindent-¡µinsert£»

ÔÚsiÉϿɼûwork->indent,×¢ÒâindentÖ±½ÓÐÞ¸ÄÎļþ£¬ÊʺÏÔÚ±àÒëͨ¹ýºóµã»÷indent½øÐÐËõ½ø¡£×¢ÒâÔÚsiÖеÄ

tabµÄ¿í¶È¿ÉÒÔÓÉÉÏÃæµÄ--tab-sizeÖ¸¶¨£¬µ«´«Èëlinuxºó£¬tab¸ñʽ¶ÔÓ¦¿í¶ÈÓÉlinux»·¾³µÄÌæ»»£¬¿ÉÔÚlinux»·¾³ÖÐÉèÖã¨Èçset tabstop=4£©¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 1 ÌõÆÀÂÛ

  1. gaochang ÓÚ 2008-02-17 00:06:07·¢±í:

    liunx ϵÄsource insight ÄÜÓÃÂð?