3 回答

TA貢獻1794條經驗 獲得超8個贊
這是史蒂夫·霍斯利(Steve Horsley)發布到golang-nuts的Geany格式說明:
在Geany中,轉到“工具”->“配置文件”->“ filetype_extensions.conf”,然后添加以下新標題:
Go=*.go;
將C定義filetypes.c復制到filedefs / filetypes.Go.conf中:
cp /usr/share/geany/filetypes.c ~/.config/geany/filedefs/filetypes.Go.conf
編輯filetypes.Go.conf并將設置和關鍵字部分更改為此:
[settings]
# default extension used when saving files
extension=go
lexer_filetype=C
[keywords]
# all items must be in one line
primary=break case chan const continue default defer else fallthrough for func go goto if import interface map package range return select struct switch type var
secondary=byte int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 float32 float64 complex64 complex128 uintptr string
- 3 回答
- 0 關注
- 528 瀏覽
添加回答
舉報