textmate

TextMate toggle comment macro is broken

ぐ巨炮叔叔 提交于 2019-12-18 15:55:41
问题 My laptop crashed and when it rebooted, "cmd /" (toggle comment) was broken. When I try to toggle comments on a line that only contains "foo", I get this output in my code instead of "# foo": /tmp/temp_textmate.2erfLj:68:in /bin/bash: -c: line 0: unexpected EOF while looking for matching '' /bin/bash: -c: line 1: syntax error: unexpected end of filemap' for " foo":String (NoMethodError) from /tmp/temp_textmate.2erfLj:48:in /bin/bash: -c: line 0: unexpected EOF while looking for matching ''

TextMate tips for Rails Development

≯℡__Kan透↙ 提交于 2019-12-18 10:55:14
问题 Working on Rails code for a bit has started me on the spiral into obsessively customising my dev environment (I say obsessive as at the last Rails meetup I went to there was some guy who was raving about shaving milliseconds off each line of code and therefore upto half an hour a day... I hope I don't become that guy...) I spend most of my time in TextMate so it seemed like a great place to start the optimising... So far I've added a few TextMate bundles like Git Bundle, Project Plus and the

TextMate tips for Rails Development

北慕城南 提交于 2019-12-18 10:55:00
问题 Working on Rails code for a bit has started me on the spiral into obsessively customising my dev environment (I say obsessive as at the last Rails meetup I went to there was some guy who was raving about shaving milliseconds off each line of code and therefore upto half an hour a day... I hope I don't become that guy...) I spend most of my time in TextMate so it seemed like a great place to start the optimising... So far I've added a few TextMate bundles like Git Bundle, Project Plus and the

如何在Notepad ++中重新格式化JSON?

扶醉桌前 提交于 2019-12-17 19:33:28
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 我需要Notepad ++从中获取一个json字符串 {"menu": {"id": "file","value": "File","popup": {"menuitem": [{"value": "New", "onclick": "CreateNewDoc()"},{"value": "Open", "onclick": "OpenDoc()"},{"value": "Close", "onclick": "CloseDoc()"}]}}} 对... {"menu": { "id": "file", "value": "File", "popup": { "menuitem": [ {"value": "New", "onclick": "CreateNewDoc()"}, {"value": "Open", "onclick": "OpenDoc()"}, {"value": "Close", "onclick": "CloseDoc()"} ] } }} 我环顾了所有TextFX选项,但找不到任何有用的东西。 #1楼 我知道你问的是NotePad ++,但OS X的TextMate可以通过JSON包来实现,它叫做“Reformat Document”命令。 #2楼 Notepad ++的

Using Python 3.1 with TextMate

青春壹個敷衍的年華 提交于 2019-12-17 17:36:11
问题 TextMate seems to use the built-in Python version I assume (sys.path doesn't work). How do you configure it to use 3.1 instead? I've already installed the 3.1 package and I can use IDLE for interactive sessions, but I need to use TextMate now. Thanks 回答1: TextMate uses the value of the TM_PYTHON variable to find the path to the Python interpreter. A good solution is to take advantage of TextMate's ability to define variables like TM_PYTHON on a per-project basis: Open a new or existing

How to correctly configure xdebug.file_link_format?

痴心易碎 提交于 2019-12-13 14:41:45
问题 I want error messages outputed by xdebug to show up as links in the browser so I can open them quickly using TextMate. I added the following line to my php.ini file, restarted apache and added a few syntax errors to one of my php scripts but the file name is not showing up as a link. Xdebug is otherwise working fine on my system. xdebug.file_link_format="txmt://open/?url=file://%f&line=%l" Are there additional configurations that I need to set up to make this work? Edit: Here are all the

Java code-completion in Textmate?

怎甘沉沦 提交于 2019-12-13 03:02:09
问题 I'm used to developing Java programs in Eclipse, where I can type something like... "SomeObject.", and when I press ".", it has a small list popup from which I can choose (and automatically complete) the method and variable names within that object. I was wondering if there is any version of this functionality in TextMate? Thank you. 回答1: From TextMate's FAQ: Q: Does TextMate have code completion, e.g. type a variable name and see all member data for that variable (object)? A: No. Sounds like

Textmate check spelling everywhere

橙三吉。 提交于 2019-12-12 14:07:28
问题 Is there any way to check spelling for ALL the words that I type in Textmate? It's hard to believe but I actually use legit English words for ALL my variables and class names - thus unhighlighted typos are just killing me. It would be nice if there was a way to check spelling for words with special characters (@uesr, crreunt_uesr) I am using Textmate for Rails if that matters. 回答1: From the manual; 4.10 Spell Checking TextMate supports the system wide 'Check Spelling as You Type'. This can be

Rspec bundle is broken in TextMate and rvm

吃可爱长大的小学妹 提交于 2019-12-12 08:43:45
问题 I've had a difficult time since I started using rvm. I've done all the rvm/textmate set up and have the latest bundles but I still can't run Rspec test from textmate . I have the latest bundle from github.com/rspec/rspec-tmbundle.git and it's installed in ~/Library/Application\ Support/TextMate/Bundles/ RSpec.tmbundle RVM default is using the system ruby 1.8.6 Rspec gem versions gem list --local | grep spec blue_light_special (0.2.0) rspec (2.2.0) rspec-core (2.2.1, 2.0.1) rspec-expectations

Textmate - open new windows in the same location as the old one.

岁酱吖の 提交于 2019-12-12 01:49:47
问题 This might sound like a strange question, but does anybody know how to force Textmate to define the location on screen where Textmate opens new window. I want new window to be opened on top of previous one and with the same size - I find it better for navigation/browsing/switching between windows. 回答1: I think the question has already been (partly) answered. In the past I used a collection of Applescripts to manipulate the size and position of windows, now I use a fork of ShiftIt. It's free