重新安装liteide后无法关联.go文件的解决办法(及更改liteide配色方案)
现象:双击.go文件,从打开方式中选择新安装的liteide.exe无效。
解决办法:
打开regedit
找到HKCU\Software\Classes\go_auto_file 发现下面有shell open command三个子目录
其中command 下,默认值为"D:\liteidex\bin\liteide.exe" "%1"
而新安装的exe是在d:\liteide目录下面 ,修改为:"D:\liteide\bin\liteide.exe" "%1"
关闭regedit,双击.go文件,可以自动用liteide打开了。
=====================
顺便改一下liteide配色方案,参考:https://blog.csdn.net/tom06/article/details/76637742
将以下代码保存xml文档,如:my.xml ,放在liteide\share\liteide\liteeditor\color目录下,
打开IDE,“查看”菜单,选项,liteEditor,字体和颜色,编辑器颜色方案,选择刚才的my.xml
<?xml version="1.0" encoding="UTF-8"?> <style-scheme version="1.0" name="Vim (dark)"> <!-- Based on the default vim theme for a dark background, Linux console colors. --> <style name="Text" foreground="#bbbbbb" background="#000000"/> <style name="Extra" foreground="#5a5a5a" background="#000000"/> <style name="Selection" background="#666666"/> <style name="CurrentLine" background="#212121"/> <style name="IndentLine" foreground="#000000"/> <style name="VisualWhitespace" foreground="#c0c0c0"/> <style name="Keyword" foreground="#CE9178"/> <style name="DataType" foreground="#55ff55" /> <style name="Decimal" foreground="#800080"/> <style name="BaseN" foreground="#ff55ff"/> <style name="Float" foreground="#ff55ff"/> <style name="Char" foreground="#ff0055"/> <style name="String" foreground="#55ff55"/> <style name="Comment" foreground="#729fcf"/> <style name="Alert" foreground="#ff0000"/> <style name="Error" foreground="#ff0000"/> <style name="Function" foreground="#ffffcc"/> <style name="RegionMarker" foreground="#bbbbbb"/> <style name="Symbol" foreground="#bbbbbb"/> <style name="BuiltinFunc" foreground="#CE9178"/> <style name="Predeclared" foreground="#CE9178"/> <style name="FuncDecl" foreground="#bbbbbb"/> <style name="Placeholder" foreground="#55ff55"/> <style name="ToDo" foreground="#5555ff" bold="true"/> </style-scheme>