Version 16 of Stata now has autocompletion implemented in the do-editor. There is one aspect of it that I find problematic and that, I think is a bug. It pertains to the automatic insertion of closing braces and quotes. When used with ", (, {, or [ it seems to work fine: you type the opening character, and a balancing closing character appears. When you reach the end of the content that goes between them, you can either reposition the cursor after the closing character, or you can actually type the closing character and Stata will recognize what you are doing and will not insert an extra ", ), }, or ]. This works even when things are fairly deeply nested.
When you start a reference to a local macro with `, the closing ' is automatically inserted. So far, so good. But when you reach the end of the name of the macro, if you type ', Stata does not seem to recognize that you have just balanced the `. Instead, it now inserts an additional ' character which you then have to delete! Given the frequency with which I use local macros, I'm finding this a real pain. I've tried to think of some rationales for why this might be intentional design, but haven't come up with any. I think it's a bug.
Any other thoughts? Anybody know a workaround (other than turning off balancing altogether--which I don't want to do)?
Added:
When you start a reference to a local macro with `, the closing ' is automatically inserted. So far, so good. But when you reach the end of the name of the macro, if you type ', Stata does not seem to recognize that you have just balanced the `. Instead, it now inserts an additional ' character which you then have to delete! Given the frequency with which I use local macros, I'm finding this a real pain. I've tried to think of some rationales for why this might be intentional design, but haven't come up with any. I think it's a bug.
Any other thoughts? Anybody know a workaround (other than turning off balancing altogether--which I don't want to do)?
Added:
Code:
. about Stata/MP 16.0 for Windows (64-bit x86-64) Revision 02 Jul 2019 Copyright 1985-2019 StataCorp LLC Total physical memory: 8.00 GB Available physical memory: 1.50 GB Single-user 4-core Stata perpetual license:
Comment