如何在 sublime text 3 上禁用突出显示? [英] How to disable Highlighting on sublime text 3?

查看:35
本文介绍了如何在 sublime text 3 上禁用突出显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为 python 程序安装了 sublime text 3,只安装了三个包,那些是 Anaconda、包控制本身和 SideBarEnhancements.另外我没有更改任何配置.用这个白色矩形勾勒出的所有内容编写代码是非常烦人的.我已经在互联网上搜索了解决方案,但我能找到的只是关于如何更改语法的简单答案,除了使代码无色之外没有任何帮助.同样对于它们,滚动的东西变得非常无用,因为如果它是一个大程序,我不太清楚我想去哪里.

I have sublime text 3 installed for python programs, with only three packages installed, those being Anaconda, package control itself and SideBarEnhancements. Also I haven't changed any config. It's incredibly annoying to write a code with everything outlined by this white rectangle. I have searched the interwebs for a solution but all I could find was simple answers on how to change syntax, nothing seens to help other than making the code colorless. Also with them, the scroling thingy gets really useless since I can't quite see where is the part where I want to go if it is a big program.

提前致谢.这是我所说的图像.

Thanks in advance. There is the image of what I'm talking about.

推荐答案

您看到的标记是 Anaconda 包的 Linting 支持,告诉您它认为您的代码有问题;这可能是与样式相关的东西,或潜在的错误等.当光标位于其中一个矩形内时,状态栏会获得文本以向您显示工具的问题所在,例如在这里它告诉我它认为那里在这一行和上一行之间应该有两个空行:

The marks you're seeing are the Anaconda package's Linting support telling you that it thinks that there's something wrong with your code; that could be something style related, or a potential bug, etc. While the cursor is inside of one of the rectangles, the status bar gains text to show you what the tool things is wrong, such as here where it's telling me it thinks there should be two blank lines between this line and the line above:

如果您使用 Preferences >包设置 >蟒蛇Default,您可以看到Anaconda 支持的所有设置,以及它们的默认值.在第 250 行左右的某个地方,您会看到:

If you use Preferences > Package Settings > Anaconda > Default, you can see all of the settings that Anaconda supports, and what their default values are. Somewhere around line 250 or so you'll see this:

    /*
        Set to false to disable Anaconda linting entirely.
    */
    "anaconda_linting": true,

在您自己的 Anaconda 设置中关闭此设置会将其关闭.尽管 Anaconda 以一种您可以直接编辑文件的方式自行安装,但这不是一个好主意,因为如果/当 Anaconda 包更新时,它会被破坏.

Turning this setting off in your own Anaconda settings will turn it off. Although Anaconda installs itself in a way where you could just edit the file directly, that's not a good idea because it will be clobbered away if/when the Anaconda package gets updated.

因此,您应该在自己的自定义 Anaconda 设置中修改设置;菜单项 Preferences >包设置 >蟒蛇设置 - 用户 将打开您的用户设置.如果您已经有一些设置,请添加此设置并更改值.如果文件显示为空,则将其添加到:

So, you should modify the setting in your own custom Anaconda settings; the menu entry Preferences > Package Settings > Anaconda > Settings - User will open your user settings. If you already have some settings in there, add in this one and change the value. If the file appears empty, then add this to:

{
    "anaconda_linting": false,
}

一旦您保存设置文件,linter 就会关闭.

As soon as you save the settings file, the linter will turn off.

这篇关于如何在 sublime text 3 上禁用突出显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆