rust-lang / rust-enhanced

The official Sublime Text 4 package for the Rust Programming Language
MIT License
780 stars 104 forks source link

Disable auto-complete inside comments #456

Open ufuksarp opened 3 years ago

ufuksarp commented 3 years ago

Sublime Text Version

Sublime Text 3 (Build 3211)

Rust Enhanced Version

v2.23.0

Auto-complete shouldn't trigger inside code blocks and lines. This causes mistakes. For example entering the first suggestion from the auto-complete with (.) and Enter instead of creating a new line.

Using this inside Rust Enhanced settings fixed this issue for me:

"auto_complete_triggers":
    [
        {
            "characters": ".:",
            "selector": "source.rust - comment"
        }
    ]