Tips for using BBEdit for Python?

5,711 views
Skip to first unread message

Brian Christiansen

unread,
Mar 3, 2014, 2:16:26 PM3/3/14
to bbe...@googlegroups.com
Greetings,

I've used BBEdit for several years for HTML, CSS, editing UNIXy files, a lot of plain text and Markdown, and the occasional PHP hack. I'm now starting an online course that uses Python to teach CS. I downloaded Pythonista for my iPad on account of it's stellar rep (read its reviews in the App Store, it's rare to see such gushing there), and I'll concur, it's a neat app. It's auto-fill features (et al) inspired me to wonder what tips and tricks, if any, BBEdit-using Pythoneers might suggest for working with Python within BBEdit? (within the context that I'm a newbie to Python)

Thanks,
~b

--

@briandigital

Brian Christiansen

unread,
Mar 12, 2014, 11:11:48 AM3/12/14
to bbe...@googlegroups.com
(bump)

So no Python-writing BBEditors? Every pro I know is using something else (mostly SublimeText 2) and I'm trying to stay with BB for all the reasons we all like it. I'm hoping someone around here might be able to help me out?

François Schiettecatte

unread,
Mar 12, 2014, 12:24:42 PM3/12/14
to bbe...@googlegroups.com
Hi

I use BBEdit to write Python code, and C, Java, Perl, and others. Works fine for me. Then again I have pretty much lived in BBEdit since it came out.

I use Dash which I find invaluable. And I also use CodeRunner (there is also a Python Runner) to test little snippets of code.

Cheers

François
> --
> This is the BBEdit Talk public discussion group. If you have a
> feature request or would like to report a problem, please email
> "sup...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
>
> ---
> You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
> To post to this group, send email to bbe...@googlegroups.com.

signature.asc

Steve deRosier

unread,
Mar 12, 2014, 12:40:10 PM3/12/14
to bbedit
I use BBEdit with Python (and C, and C++ and so on...).  I think you likely didn't get an answer because everyones more or less happy with using BBEdit with Python.  One thing I do recommend is using Dash. 

Seems to be a lot of hype and noise around SublimeText.  I don't know, never tried it myself.

The only thing I find missing from BBEdit is cscope integration. And that's irrelevant for Python.

- Steve


--

Brian Christiansen

unread,
Mar 12, 2014, 5:31:26 PM3/12/14
to bbe...@googlegroups.com
Françios, Steve,

Thanks for your replies. When you reference "Dash", you're referring to http://kapeli.com/dash the Mac app for documentation?

When I talk about "tips for Python in BBEdit", I presume everyone on this list "likes how BBEdit works" (as do I) or we wouldn't be here and we would be using a different editor. I was hoping for perhaps, "Hey, I make my living writing Python web apps, and here are some things I've gravitated to within the app, [or] here are a couple of extras I use (and why)…" 

Speaking of Sublime, if you Google "using Sublime Text for python" you'll get a post like [Setting up Sublime Text for Python development](http://dbader.org/blog/setting-up-sublime-text-for-python-development). *Granted*, Sublime works differently, has a package manager, etc., so that's a little more applicable for ST (and ST is extensible *with* Python, which likely attracts Python users to begin with). But this is along the lines of what I was hoping for.

> Seems to be a lot of hype and noise around SublimeText. 

I spend most of my time in BBEdit with web front-end code. I'm the only professional I know who uses BBEdit. Of the other web coders (front & backend) I know, ST2 is easily the most popular, most of the ST users are TextMate 1 refugees, and rave about ST. The rest include PHPStorm, and Vim (these Vim guys are Rubyists). A few, like me, open up Coda 2 occasionally (It's the most visually pleasing editor I've used, strong in several areas, but weaker in general than BBEdit). The guy next to me uses Eclipse all day (don't ask, I don't know why). I've installed BBEdit on his Mac and he occasionally uses it. :-)  

I mention this because I've finally joined this list because I can't get help and tips from my peers or find much on the web.

Best,
~b

Steve Piercy

unread,
Mar 12, 2014, 8:48:56 PM3/12/14
to bbe...@googlegroups.com

I can't offer any Python in BBEdit tips. I use PyCharm for most Python stuff. Debug and run code in PyCharm, support for virtual environments, package management, code completion, integrated documentation, interactive shell, and lots more. I recommend it to all Python newbs.

There's also pydev as an Eclipse plugin, but it's not as nice as PyCharm.

--steve

Alex Satrapa

unread,
Mar 12, 2014, 9:40:37 PM3/12/14
to bbe...@googlegroups.com
For me the number one tip for working with any codebase in BBEdit is to remember to run “bbedit --maketags .” whenever you finish a round of editing. Then you get the right-click->definitions->source goodness.

I have PHPtidy and Perltidy text filters, but strangely enough I don’t have a Python tidying script.

Alex

Brian Christiansen

unread,
Mar 14, 2014, 10:05:47 AM3/14/14
to bbe...@googlegroups.com
Steve,

Thanks for sharing! I looked up PyCharm, and found it's PHPStorm for Python. (a day after reading this did I get the pun in the name)

Grail,

Tell me more about this "make tags" I've read about exuberant ctags in the past, and I'm still not sure what they're for (probably because I'm not a proper programmer). From what I can tell, you run the CLI command and BBEdit will scan your (project?|document?) for things it can put into auto-complete suggestions? Will that work for HTML/CSS projects, as well?

Breaking away from Python for a moment, and into my day job…
The area I always felt BBEdit lagged in web coding is in the intelligence of it's autocomplete. Coda, for example, does autocomplete much better for HTML and CSS properties and attributes. And, ideally, each time I went to enter a class or ID, I'd really want an autocomplete to know what classes and IDs I've already used in other docs in the project, especially those you've already coded into a css, scss, or sass file, and suggest them.

Can ctags help with that?

~b

Rick Yentzer

unread,
Apr 26, 2014, 5:17:40 PM4/26/14
to bbe...@googlegroups.com
I've used BBEdit for a number of years. I've also tested just about every editor/IDE under the sun. I have found that most editors have their strengths and weaknesses. ST seems to be suffering the same fate as TM. PhpStorm is pretty amazing. But, I'm learning Python now and PhpStorm can't help me and I don't want to spend the $$ to get PyCharm right now.

Other, more experienced users can correct me if I'm wrong but ctags does not help with auto-complete for class names already used in a project. At least, it did not for me after a quick test.

Philippe Martin

unread,
Apr 26, 2014, 5:24:15 PM4/26/14
to bbe...@googlegroups.com
FWIW, there’s a free version of PyCharm, the Community Edition.

Philippe
______________________________________________________________________
Philippe MARTIN
http://flipmartin.net





Steve Piercy

unread,
Apr 26, 2014, 5:36:52 PM4/26/14
to bbe...@googlegroups.com
On 4/26/14 at 2:17 PM, ryen...@gmail.com (Rick Yentzer) pronounced:

>I've used BBEdit for a number of years. I've also tested just
>about every editor/IDE under the sun. I have found that most
>editors have their strengths and weaknesses. ST seems to be
>suffering the same fate as TM. PhpStorm is pretty amazing. But,
>I'm learning Python now and PhpStorm can't help me and I don't
>want to spend the $$ to get PyCharm right now.

PyCharm has a free Community Edition, as well as a paid
Professional Edition. PyCharm CE is to PyCharm PE as
TextWrangler is to BBEdit.
http://www.jetbrains.com/pycharm/download/

The PHPStorm/WebStorm/PyCharm/etc. family all use the same core
under the hood, and many features from one product are used in all.

--steve

------------------------
Steve Piercy, Soquel, CA

Dan Ross

unread,
Sep 9, 2014, 10:38:07 AM9/9/14
to bbe...@googlegroups.com
bbeit --maketags is indeed awesome.

Does anyone know a way to to include a local virtualenv in the tag making?

Charlie Garrison

unread,
Sep 9, 2014, 6:31:11 PM9/9/14
to bbe...@googlegroups.com
Good morning,

On 9/09/14 at 7:38 AM -0700, Dan Ross <d...@rosspixelworks.com> wrote:

>bbeit --maketags is indeed awesome.
>
>Does anyone know a way to to include a local virtualenv in the tag making?

I'm not sure what "local virtualenv" is, so not sure how that
relates to tags. Since BBEdit is using ctags, you could read the
docco for that to see if it does what you want.


Charlie

--
Charlie Garrison <garr...@zeta.org.au>
github.com/cngarrison metacpan.org/author/CNG

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
http://www.ietf.org/rfc/rfc1855.txt

Alex Satrapa

unread,
Sep 10, 2014, 4:03:10 AM9/10/14
to bbe...@googlegroups.com
On 9/09/14 at 7:38 AM -0700, Dan Ross <d...@rosspixelworks.com> wrote:

> bbedit --maketags is indeed awesome.
>
> Does anyone know a way to to include a local virtualenv in the tag making?

"bbedit --maketags $VIRTUAL_ENV ." seems to work for me

Alex
Reply all
Reply to author
Forward
0 new messages