0

Autocomplete with SEMICOLON.

agentDash hace 11 años actualizado por robertcollier4 hace 11 años 2

Once you select the desired text from the autocomplete suggestions, pressing SEMICOLON should use the autocomplete text and append SEMICOLON to it. Right now you have to press ENTER and then SEMICOLON.

How about comma? Parentheses? Square or curly brackets? There are many possibilities.

Seems like this is something you should do with a plugin. Not tested but this might get you started:


{ "keys": [";"], "command": "commit_completion_custom", "context":

    [ { "key": "auto_complete_visible" } ]

},


import sublime, sublime_plugin

    class CommitCompletionCustomCommand(sublime_plugin.TextCommand):

        def run(self, edit):

            self.view.run_command("commit_completion")

            self.view.run_command("insert_snippet", { "contents": ";" } )