sublimetext2

Nodejs build sublime-text2

删除回忆录丶 提交于 2019-12-22 06:37:03
问题 I am trying to use sublime-text 2, have installed Nodejs for Windows, the Nodejs plugin through package control and I get the following error: ERROR: The process "node.exe" not found. The filename, directory name, or volume label syntax is incorrect. [Finished in 0.1s with exit code 1] I have setup as my user environment variable a NODE_PATH: C:\Program Files\nodejs\node.exe There is in my System variables PATH: C:\Program Files\nodejs\ My Nodejs.sublime-settings is set-up as follows: { //

phpstorm color scheme for sublime

可紊 提交于 2019-12-22 04:36:11
问题 I had been using phpstorm for long time, now I am also working in sublime as its good for quick edits and best in sense of speed. I want default color scheme of phpstorm in sublime. Is that already built ? OR How can I start with creating such color scheme ? 回答1: For those who use Darcula, you can install it via package control. https://packagecontrol.io/packages/Darkula%20Color%20Scheme 回答2: Have you tried here? preferences > or command + n (alt+n) 来源: https://stackoverflow.com/questions

Autocomplete with SASS missing semicolon on Sublime Text?

百般思念 提交于 2019-12-22 04:29:22
问题 I've just started using SASS with Sublime Text 2 and really enjoying it. However, some of the autocomplete features that worked with CSS, do not work with SASS. For example, on a CSS file when I type: float and press tab , it automatically adds a semicolon float: And the same if I then add left and press tab, I get float:left; However, it does not do this in a SCSS file. Is there a way to get this autocomplete back, but with SASS? 回答1: Fixed: https://github.com/sergeche/emmet-sublime/issues

Change “Next File” and “Previous File” shortcut in Sublime Text 2

◇◆丶佛笑我妖孽 提交于 2019-12-22 04:29:08
问题 I'm having no luck changing the key bindings for switching files in Sublime. Does anybody know that the deal is here? All i'm trying to achieve is cmd+] and cmd+[ to show next and previous files. Then i can use tab and shift+tab for all my indenting. [ { "keys": ["super+]"], "command": "Next File" }, { "keys": ["super+["], "command": "Previous File" } ] Thanks everyone! 回答1: Try this: [ { "keys": ["ctrl+]"], "command": "next_view" }, { "keys": ["ctrl+["], "command": "prev_view" } ] Of course

In Sublime Text 2 How to view carriage return and line feed?

徘徊边缘 提交于 2019-12-22 01:48:54
问题 In notepad++ there is a toolbar button to switch on/off display of EOL characters, i.e. carriage return and line feed. Can Sublime Text 2 do the similar thing? 回答1: Sublime Text does not currently support displaying EOL characters. http://sublimetext.userecho.com/topic/104394-is-it-possible-to-show-all-characters-spaces-tabs-cr-lf-etc/ 回答2: In case anyone is here years later, I found success with the sublime package RawLineEdit. Install with Package Control Enter Raw Line Edit: Toggle into

Ruby .gets doesn't work

◇◆丶佛笑我妖孽 提交于 2019-12-21 20:57:22
问题 I'm trying to get simple user input in Ruby, but I can't get it working. I'm using the gets method, but the program never stops to ask me for input. I'm using Sublime Text 2 as my text editor, and I run the program in it, too (if this makes a difference). Here's my code: puts "What is your name?" name = gets puts "Hello " + name + ". How are you?" And here's the error (and output) given to me: C:/Users/Sten Sootla/Desktop/Ruby workspace/exercise.rb:3:in `+': can't convert nil into String

Sublime Text 2 - How to change the font size of the output panel?

谁说我不能喝 提交于 2019-12-21 18:33:41
问题 When I change the font size in Sublime Text 2 (via shortcuts / config), the font size of text in output panel AKA Build Results is changed too. It would be convenient to have these font sizes separated. I tried to follow & adapt Sublime Text 2 how to change the font size of the file sidebar? and edited <theme name>.sublime-theme : { "class": "output.exec", //"class": "output", //"class": "output_exec", //"class": "exec", //"parents": [{"class": "output"}], "font.size": 7.0 }, Output panel is

Sublime Text 2 - How to change the font size of the output panel?

会有一股神秘感。 提交于 2019-12-21 18:32:54
问题 When I change the font size in Sublime Text 2 (via shortcuts / config), the font size of text in output panel AKA Build Results is changed too. It would be convenient to have these font sizes separated. I tried to follow & adapt Sublime Text 2 how to change the font size of the file sidebar? and edited <theme name>.sublime-theme : { "class": "output.exec", //"class": "output", //"class": "output_exec", //"class": "exec", //"parents": [{"class": "output"}], "font.size": 7.0 }, Output panel is

How can a Sublime Text build system access the contents of a buffer, not a file?

做~自己de王妃 提交于 2019-12-21 18:04:12
问题 Let's say I open a new buffer in Sublime Text 3 (ST3); how can I access the contents of that buffer from my build system? i.e. Let's say I have a build system that will run a file thorough node —in that case I can simply use $file , but as far as I can tell, there is no build system variable for the current buffer's contents. Is there any way to pull the contents of the currently selected, unsaved buffer into a build process? 回答1: To do this you will need to write a custom plugin to perform

How do i get HAML comments to work correctly in Sublime text 2

可紊 提交于 2019-12-21 12:43:16
问题 Comments should be -# not / since we don't want this code to be shown to the user 回答1: Found the solution: 1) Install the textmate bundle https://github.com/phuibonhoa/handcrafted-haml-textmate-bundle I think this can be done via the package manager, i just used git clone git://github.com/phuibonhoa/handcrafted-haml-textmate-bundle.git Haml.tmbundle in the packages folder 2) Delete all files starting with Ruby Haml in the Packages/Rails folder 3) Restart sublime 回答2: You can change your