跳到主要內容

發表文章

目前顯示的是 2月, 2016的文章

Putty Terminal Setting for CentOS

一樣的 shell 和 putty 設定,但是 Debian 或者 Ubuntu 的 command line 下, Home / End 鍵正常,但是 CentOS 卻不能使用。 原來 CentOS 可以裝 ncurses-term 這個 package,這樣 terminal 就可以使用 putty-256color 。 Putty > Connection > Data > Terminal-type string > putty-256color screenrc 裡面則是不要再手動設定 terminal,這樣 Home / End 鍵在 command line 就可以正常使用啦~ Update: fix-typo... no dash between 256 and color...

Artistic Automatic Code Formatter

可以自動重排 C / C++ / Java / C# 的工具   Artistic 目前喜歡的參數… (~/.astylerc) --style=linux --indent=force-tab --pad-header --pad-oper Sublime AStyleFormatter Plugin 預設值是 --style=google --indent 是看 sublime 的設定 indent 其實比較喜歡 space=4,可是 team 裡好像是用 tab 比較多。我只是不能忍受 space 和 tab 在同一個檔案裡混用… 對於 bracket style / pad-oper 和 pad-header 則是有莫名的強迫症傾向…