Can Completion work with underscores?

31 views
Skip to first unread message

Ed Leafe

unread,
Feb 20, 2020, 9:56:31 AM2/20/20
to BBEdit Talk
I write a lot of Python, and following the PEP8 standards, long variable names are written using underscores, such as something_with_very_long_name. But when working in BBEdit, if I type some and then press the hotkey for Edit/Complete, I don't get a match for the long name; the word something appears, which suggests that BBEdit is using underscore as a word delimiter. Is there any way to change this so that an underscore is treated like any other character?

Rick Yentzer

unread,
Feb 22, 2020, 6:12:38 PM2/22/20
to BBEdit Talk
Hey Ed,

I just tried this with a python document, and Bbedit is offering the correct suggestion, and once I hit tab to accept, or enter, it fills in the entire name

I defined a simple function with a_really_long_name and it worked.

Could it be your settings under Preferences/Completion:

According to the manual (pg 225) it states:

The Completion preferences control BBEdit’s text completion behaviors, including both the completion popup and automatic insertion of delimiters, which consist of parentheses, brackets, single and double quotes, as well as various language-specific elements.

If this doesn't work, send a help request. They're usually pretty quick to respond.

Thanks,
Rick

Ed Leafe

unread,
Feb 22, 2020, 9:52:51 PM2/22/20
to BBEdit Talk
Strange - it wasn't working for a project, but I quit and re-launched BBEdit, and now it it's working. Maybe it was because I had just changed the hotkey for completion? In any event, it's fine now. Thanks for the response.

-- Ed
Reply all
Reply to author
Forward
0 new messages