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

如何在BBedit中使用代码补全?属性补全正常但值无补全

Fixing BBEdit CSS Value Completion Issues

Hey there, let’s work through this BBEdit quirk where your CSS property values (like uppercase or vertical-align values) aren’t showing up in completions—even though the properties themselves work fine. I’ve dealt with similar issues before, so here are some practical steps to resolve it:

  • Double-check CSS-specific completion settings
    You’ve already enabled global text completions, but let’s confirm the CSS language settings are locked in:
    Open Preferences > Languages > CSS, make sure "Enable completions" is checked, and under "Completion Sources", verify that "CSS Property Values" is ticked off. Sometimes this specific toggle gets disabled accidentally, which blocks value suggestions.

  • Clear BBEdit’s completion cache
    Corrupted cache files are a common culprit for wonky completions. Here’s how to fix it:

    1. Quit BBEdit completely.
    2. Navigate to ~/Library/Application Support/BBEdit/Completion Caches (you can access the Library folder by holding Option while clicking the Go menu in Finder).
    3. Delete any CSS-related cache files (look for names like CSS.cache).
    4. Restart BBEdit—it’ll rebuild the cache automatically. Try typing text-transform: u or vertical-align: t afterward to see if completions pop up.
  • Verify you’re using standard CSS property names
    Quick sanity check: The standard CSS property is text-transform, not text-transformation. If you’re typing the non-standard version, BBEdit might not recognize the corresponding values even if it completes the property itself. Stick to the standard property names to ensure value completions work as expected.

  • Reinstall the CSS language module (or update BBEdit)
    If the above steps don’t work, the CSS language support files might be corrupted. Head to Preferences > Languages, select CSS, and look for an option to "Reinstall Language Module" (location varies slightly by BBEdit version). Alternatively, download the latest version of BBEdit and do a clean overwrite install—updating often fixes these small, annoying bugs.

  • Add custom completions (temporary workaround)
    If all else fails, you can manually add the values you need:
    Go to BBEdit > Text Factories > Completions, create a new CSS completion group, and add entries like uppercase, lowercase, top, middle, etc. This ensures BBEdit will suggest these values whenever you’re working in CSS files.

内容的提问来源于stack exchange,提问作者Markeee

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.22 07:58:46