sublimetext2

sublime build - nodejs - how to start and stop node app

孤者浪人 提交于 2020-01-02 05:57:12
问题 So my node build is like this { "cmd": ["node", "$file"], "selector" : "source.js", "path" : "/usr/local/bin" } It runs, but problem is once it runs, it never stop. 回答1: You can use a reloader like node-dev for this kind of thing. Replace node with node-dev ( npm install -g node-dev ) and that's it so your build file looks like this: { "cmd": ["node-dev", "$file"], "selector" : "source.js", "path" : "/usr/local/bin" } I personally use node-dev, but you may also try node-supervisor or node

SASS won't build in Sublime Text 2 [Errno 2] No such File or Directory

僤鯓⒐⒋嵵緔 提交于 2020-01-02 05:15:28
问题 I've scoured all other posts on this subject to no avail. I've created a .scss file, installed sass, compass and I'm on OSX so I have ruby installed, I did install the latest version about a year ago however. When I cmd + b to build my .scss I get this error: Errno 2] No such file or directory [cmd: [u'sass', u'--update', u'/Users/administrator/Desktop/style.scss:/Users/administrator/Desktop/style.css', u'--stop-on-error', u'--no-cache']] [dir: /Users/administrator/Desktop] [path: /usr/local

Sublime Text 2: SFTP browsing remote in sidebar

不打扰是莪最后的温柔 提交于 2020-01-02 03:36:26
问题 I'm trying to switch to using the SFTP package for Sublime Text 2 as my default FTP client, as it looks rather promising with regards to workflow improvement -- much faster than using a 3rd party FTP client. I was trying to browse a remote server, and it seems like I only have two options: either sync the entire remote location to a local folder, or browse it via the SFTP/FTP > Browse Server menu item, which brings up one of those file browsing bars. My situation concerns a large remote

SublimeText keeps inserting \xc2 characters

时间秒杀一切 提交于 2020-01-02 03:13:07
问题 I use SublimeText for writing Python. Every so often it will insert characters that I didn't type. Today's example: Non-ASCII character '\xc2' in file /path/to/my/project/forms.py on line 256, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (forms.py, line 256) This doesn't happen to my colleagues and happens to me from time to time. I'm not sure what to do about it. I can delete the line and re-type it and it's fine. I have tried updating versions etc etc.

SublimeLinter: PHP linting not working

送分小仙女□ 提交于 2020-01-01 23:58:07
问题 PHP linting is not working in SublimeLinter though it says PHP: loaded in the console. I'm working on Windows. Additionally, there are no options if I open the Command Palette except for Extract Annotations . Did anyone have the same problem and knows the solution? 回答1: Additionally, make sure you've given the path to php.exe in your user settings - (prefs>pkg settings>sublimelinter>settings - user) should look like this (if your path is "C:\xampp\php\php.exe"): { "sublimelinter": true,

Send Text to REPL Using SublimeREPL and Sublime Text 2

情到浓时终转凉″ 提交于 2020-01-01 11:48:32
问题 I'm having trouble getting started with SublimeREPL. I have a python program, and can start a python interpreter inside of SublimeText2. However, I would like to use either the Eval In Repl and Transfer to Repl features, but they don't seem to do anything. How do I associate a repl with my file in sublime text 2 so these will work? 回答1: History To be honest eval for python never worked reliably. It was plagued with strange compilation errors (mainly caused by whitespace/blank lines) and

Sublime text 2 - change tags color

天涯浪子 提交于 2020-01-01 11:48:31
问题 I am using Sublime Text 2 - which i want to make it my default program for work. I have install the Dreamweaver Theme - but i have some issues: I dont know how to change the colors for tags (a, img, form, etc). There are all in the same color, not like in Dreamweaver CS4 (see pic). How can i change colors for each? I have this in my theme code: <dict> <key>name</key> <string>html img tag</string> <key>scope</key> <string>text.html meta.tag.img - string</string> <key>settings</key> <dict> <key

How to prevent “.”(dot) from cancelling autocomplete in Sublime Text 2?

邮差的信 提交于 2020-01-01 06:30:27
问题 I have defined some keywords for a proprietary language I use at work: { "match": "\\b(util.tickettimelimit|util.user_ip|util.server_name|util.today)\\b", "name": "keyword.source.GTX2", "comment": "Tags" } I also have a completion file: { "scope": "source.GTX2", "completions": [ "util.server_name", "util.tickettimelimit", "util.today", "util.user_ip" ] } When I start typing "util" I see the correct autocomplete options: But as soon as I enter the "."(dot) autocomplete options go away: Is

Key Binds - Middle Mouse Button with Sublime Text 2

纵然是瞬间 提交于 2020-01-01 05:26:08
问题 Does anybody know if it's possible to bind the middle mouse button to an action in Sublime Text 2? I know that some mouse interaction is possible, because you can use the back and forward buttons. Basically, I was going to use this button to upload a file with the sFTP plugin so it would decrease the amount of buttons I would need to press from 3 to 1. Currently, I have: { "keys": ["ctrl+shift+u"], "command": "sftp_upload_file" } Ideally it would be something like this: { "keys": ["mouse4"],

Sublime Text: text list of open files

喜夏-厌秋 提交于 2020-01-01 04:54:07
问题 I have some files opened in sublime text. I can see that list on the side panel. I want to know if there is a plugin that can give me this list as text. i.e., I hit a button and new file pops up that has lists all the open file names. 4 open files: open_file_1.cc open_file_1.h open_file_2.cc open_file_2.h 回答1: I wrote a small plugin for this as I could not find anything. Pasting it here so that someone can use it if needed in future. https://github.com/rrg/ListOpenFiles 回答2: Press: Ctrl `