Switch off git integration in Sublime Text 3.2

让人想犯罪 __ 提交于 2019-12-13 18:52:43

问题


If I want to switch off the GIT integration (aka the slime green line) on the left hand gutter in Sublime text, I just need to switch it to false:

26    "show_git_status": false

However, when setting that in the Preferences, I get the error:

Error trying to parse settings: Unexpected character, expected a comma or closing brackets in Packages\User\Preferences.sublime-settings:26:2

Clearly I'm a comma or bracket(s) short, but I don't know where or what format it should be. Can anyone enlighten me?


回答1:


The problem is that you are missing a comma there in line 26, it should be:

 "show_git_status": false,

After each option there must be either a comma, indicating that there are more config parameters remaining, or a closing bracket }.




回答2:


Since you added a line, it seems that you just forgot to add a comma at the end of the previous line.

OK :

{
    "some_property": value,
    "some_other_property": value,
    "show_git_status": false
}

NOT OK :

{
    "some_property": value,
    "some_other_property": value
    "show_git_status": false
}


来源:https://stackoverflow.com/questions/55325394/switch-off-git-integration-in-sublime-text-3-2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!