简体   繁体   English

textmate如何使我的python(塔)开发更容易?

[英]How can textmate make my python (pylons) development easier?

I have textmate, but honestly the only thing I can do with it is simply edit a file. 我有textmate,但是说实话,我唯一可以做的就是简单地编辑文件。

The handy little file browser is aslo useful. 方便的小文件浏览器也很有用。 (how can I show/hide that file browser anyhow!) (无论如何,我如何显示/隐藏该文件浏览器!)

But I have no other knowledge/tricks up my sleeve, care to help me out? 但是我没有其他知识/没有袖手旁观,是否愿意帮助我?

If you look under the Bundles menu in TextMate there is a Python-specific sub-menu that exposes a bunch of helpful things like syntax checking, script debugging, insertion of oft used code blocks, manual look ups and so on. 如果您在TextMate的Bundles菜单下查看,则有一个特定于Python的子菜单,其中显示了许多有用的信息,例如语法检查,脚本调试,常用代码块的插入,手动查找等。 Most of them are bound to keyboard shortcuts (or can be bound if they are not). 它们中的大多数都绑定到键盘快捷键(如果没有,则可以绑定)。

Also, under the Bundles are sort of general-to-code or general-to-text-editing tasks in sub-menus. 此外,捆绑包下还包含子菜单中的常规代码或常规文本编辑任务。

You can set up templates for new file creation that let you start new files with all the little bits and pieces you like to see in new files (copyright notice, author, SCC tags, etc.) See the File -> New From Template -> Edit Templates... menu option to do that. 您可以设置用于创建新文件的模板,以使您可以从新文件(包括版权声明,作者,SCC标记等)中看到所有想要的小片段开始新文件。请参见File -> New From Template -> Edit Templates...菜单选项即可。 It ships with 4 Python templates already. 它已经附带了4个Python模板。

Finally, that browser is called the Project Drawer. 最后,该浏览器称为项目抽屉。 View -> Show Project Drawer to get it to show up. View -> Show Project Drawer以显示它。 It'll only be available when the window you're viewing is a project window, not a single document window. 仅当您正在查看的窗口是项目窗口而不是单个文档窗口时,此选项才可用。

So the killer "app" of TextMate is the bundle community. 因此,TextMate的杀手级“应用”是bundle社区。 These are collections of commands, snippets etc that third parties have created. 这些是第三方创建的命令,摘要等的集合。

Say you're using Mako as your template language. 假设您使用Mako作为模板语言。 Google "TextMate Mako" and you'll find this article on a Mako bundle for TextMate . Google“ TextMate Mako”,您将在用于TextMate的Mako捆绑包中找到此文章 Google around for some of the other tools you use: I don't think there's one for Pylons specifically (nor Turbogears).. but hey, you could always start one... Google围绕着您使用的其他一些工具:我认为Pylons并没有专门的工具(也没有Turbogears)..但是,您总是可以启动一个...

And there's bound to be a TextMate bundle for some of the other Python tools you use (use the PEP8 checker? There's a bundle for that, for instance...) 并且肯定会为您使用的其他一些Python工具提供一个TextMate捆绑包(使用PEP8检查器吗?例如,有捆绑包...)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM