Autocorrect "?" to "Debug.Print" #4933
Labels
difficulty-03-duck
Involves more challenging problems and/or developing within and revising the internals API
enhancement
Feature requests, or enhancements to existing features. Ideas. Anything within the project's scope.
feature-autocomplete
feature-autocorrect
AC issues specific to the "autocorrect" handler
up-for-grabs
Use this label in conjunction with a difficulty level label, e.g. difficulty-02-ducky
Linking #4932
The VBE accepts
?
and "pretty-prints" it to aPrint
statement - which works fine when the?
token followsDebug.
, but makes the statement illegal otherwise.Let's implement an autocompletion feature that intercepts the keypress when the current logical line of code is empty (barring indentation), and writes
Debug.Print
instead, placing the caret immediately after thePrint
token (we can't make it have a trailing whitespace, VBE would eat it).The text was updated successfully, but these errors were encountered: