You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何禁用DataGrip中的紫色代码高亮线功能?

How to Disable the Purple Code Highlighting Lines in DataGrip

Hey there! I totally get how frustrating it is to have all your code surrounded by those purple lines—let’s fix that right away. Here are the most common solutions depending on exactly what kind of purple highlighting you’re seeing:

Fix 1: Disable Spelling Check Purple Wavy Lines

If the purple lines are wavy (like a spelling error marker), this is almost certainly DataGrip’s built-in spelling check:

  • Open DataGrip’s settings: press Ctrl+Alt+S (Windows/Linux) or Cmd+, (Mac)
  • Navigate to Editor | Inspections
  • In the top search bar, type Spelling
  • Uncheck the main Spelling box (or uncheck specific sub-options if you still want some spelling checks enabled)
  • Hit Apply then OK—the purple lines should disappear immediately.

Fix 2: Turn Off Code Block/Highlighted Border Lines

If it’s a solid purple border surrounding entire code blocks, this is likely a color scheme or code highlighting setting:

  • Open settings and go to Editor | Color Scheme | General
  • Use the search bar here to look for terms like Code Block, Block Highlighting, or Selection
  • Find the option assigned the purple color, either set its color to transparent or uncheck the "Enabled" box (depending on your theme)
  • Save changes with Apply and OK.

Fix 3: Disable the Right Margin Purple Line

If the purple line is a single vertical line on the right side of the editor (the "right margin" marker):

  • Go to Editor | General | Appearance in settings
  • Uncheck the box labeled Show right margin
  • If you just want to change its color instead of removing it, head to Editor | Color Scheme | General and adjust the Right Margin color to something less distracting.

Bonus Trick: Directly Inspect the Highlight

If none of the above works, right-click directly on one of the purple lines and select Inspect. This will take you straight to the exact setting that’s causing the highlighting, so you can disable it with one click.

内容的提问来源于stack exchange,提问作者Diego Victor de Jesus

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 06:24:23