Having a global key for snippet completion sometimes undesirable, for instance in Pascal with space as snippet completion:
if=if %cursor% then
it works OK with "if" but not quite with "begin", this is due to normally people press enter instead of space after "begin". To maintain backward compatibility, the current snippet format could be maintained and still uses the global key. However, if another "=" symbol occurs then its content up to the next "=" is considered as overriden shortcut for snippet completion. For instance:
if=space=if %cursor% then
it could be difficult to parse I think, so you might want to use other symbol or switch the key as the last instead of the middle part.
Log in to post a comment.