Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocorrect "?" to "Debug.Print" #4933

Open
retailcoder opened this issue Apr 24, 2019 · 0 comments
Open

Autocorrect "?" to "Debug.Print" #4933

retailcoder opened this issue Apr 24, 2019 · 0 comments

Comments

@retailcoder
Copy link
Member

@retailcoder retailcoder commented Apr 24, 2019

Linking #4932

The VBE accepts ? and "pretty-prints" it to a Print statement - which works fine when the ? token follows Debug., 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 the Print token (we can't make it have a trailing whitespace, VBE would eat it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.