Sublime Text 3白色框周围的线条

ASE*_*Dev 23 sublimetext sublimetext3

在此输入图像描述

注意:刚开始使用Sublime Text 3在Python中编程.我不知道为什么我在每一行都得到白点/标记,见下图.我想学习以下内容.

  1. 是因为错误吗?
  2. 是因为包或命令?
  3. 我尝试了CTRL + Space,CTRL + G和CTRL + K,我仍然得到白色标记,我应该关注吗?

小智 80

你可能安装了Anaconda包.如果是这样,您需要转到首选项→包设置→Anaconda→设置 - 用户.然后粘贴以下代码并保存.那些盒子应该不见了.

{
    "anaconda_linting": false,
}
Run Code Online (Sandbox Code Playgroud)

  • 这应该标记为最佳答案,因为它解决了用户的问题. (5认同)
  • 我认为你不应该完全禁用 linting。出现这些框是因为您的代码不符合 PEP8。因此,请将 `{"pep8": false, "anaconda_linter_mark_style": "none",}` 添加到 `settings-user` 中。 (4认同)

ron*_*edg 6

对于 Anaconda,请考虑保留错误通知,但让它们更容易被注意到。从 Sublime Text > 首选项 > 包设置 > Anaconda > 设置 - 默认进行编辑

"anaconda_linter_mark_style": "无"

以下是选项:

/*
    If 'outline' (default), anaconda will outline error lines.
    If 'fill', anaconda will fill the lines.
    If 'solid_underline', anaconda will draw a solid underline below regions.
    If 'stippled_underline', anaconda will draw a stippled underline below regions.
    If 'squiggly_underline', anaconda will draw a squiggly underline below regions.
    If 'none', anaconda will not draw anything on error lines.
*/
Run Code Online (Sandbox Code Playgroud)