Skip to content

AC/SCP Settings: an option to make SCP work in comments too #4979

Open
@retailcoder

Description

@retailcoder

Justification
Self-Closing Pair (SCP) completion is currently hard-wired to bail out when the current line is in a comment. That hard-wired behavior needs to be made configurable, and/or improved so that it still kicks in when the current line looks like '@Annotation|, so we can get from there to '@Annotation("|") with just two (( and ") keystrokes.

Description
When SCP determines that the current line is a comment, instead of bailing out it needs to first see whether it's looking at an annotation comment: if it isn't, we verify whether the user has configured SCP to be enabled in comments, and we only bail out if they're disabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty-03-duckInvolves more challenging problems and/or developing within and revising the internals APIenhancementFeature requests, or enhancements to existing features. Ideas. Anything within the project's scope.feature-autocompletefeature-self-closing-pairsAC issues specific to the handling of self-closing pairsfeature-settings

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions