sublimetext3

Sublime Text, SublimeREPL, Clojure & Windows 8

北慕城南 提交于 2019-12-04 05:01:50
I've got both Leiningen & Clojure working on Windows 8 separately from Sublime Text (e.g. I can get a repl working in Windows PowerShell). My problem is that I can't get the SublimeREPL working in SublimeText (the REPL loads up but doesn't then do anything). Are there any simple traps that I might be missing or, failing that, are there a series of steps I could follow to troubleshoot? Please see this SublimeREPL issue for instructions on how I got a Clojure REPL to work, at least on XP (I haven't tried it on Win7 or 8 yet). Basically, I edited the menu file for Clojure, and changed the command

Fastest way to compile SCSS (Compass) + refresh the browser?

爷,独闯天下 提交于 2019-12-04 04:54:24
Just wondering what in your opinion is the fastest way to have your SCSS compiled and browser refreshed? I'm currently using LiveReload, but it seems to be a bit slow sometimes, it can take from 1-3sec. It doesn't seem much, but I feel like I'm losing my proper coding pace. What do you guys use? would CodeKit be faster? Or maybe Sublime LiveReload plugin (not the actual app)? Or maybe I should give up Compass and use something else? Any suggestions would be appreciated. PS. I'm on OS X I use this stack: gruntjs grunt-sass (uses libsass via node-sass instead of ruby sass) grunt-watch-contrib

Sublime text: Merge multiple adjacent white spaces into one

无人久伴 提交于 2019-12-04 04:27:46
问题 How to do this in sublime text "aaa bbb ccc ddddddd " should get converted to "aaa bbb ccc ddddddd " 回答1: Create a snippet: <snippet> <content><![CDATA[ ${SELECTION/\s{2,}/ /g} ]]></content> </snippet> Then create a keybinding to call that snippet in your Preferences -> KeyBindings - User file: { "keys": ["ctrl+shift+z"], "command": "insert_snippet", "args": { "name": "Packages/User/Snippets/test_snippets/regex_whitespace.sublime-snippet" } }, Then, select text on a line, or multiple lines,

Sublime Text Editor: Boxes Appear instead of Spaces

淺唱寂寞╮ 提交于 2019-12-04 03:47:36
问题 I might have pressed something on my keyboard by accident. The spaces on my code turned into boxes and it's annoying. How do I remove it? 回答1: You have opened the Find panel and searched for a space. Press Esc to close the find panel and the boxes will disappear. Alternatively turn off "highlight matches" in the find panel. 来源: https://stackoverflow.com/questions/38366204/sublime-text-editor-boxes-appear-instead-of-spaces

JsFormat rule for newline in es6 imports

北城余情 提交于 2019-12-04 03:15:36
问题 JsFormat for Sublime Text 3 conforms to most ES6 standards, however, when auto-formatting import statements, it adds a new line to object imports. Here is what the pre-formatted line looks like: import {func1, func2, func3} from 'some-module'; When auto-formatting, it turns into: import { func1, func2, func3 } from 'some-module'; Is there a way to disable this kind of formatting? 回答1: According to the Github repo, JsFormat uses js-beautify to do the formatting. That project has an open issue

Can't open in new tab in Sublime Text 3. Is it a bug?

徘徊边缘 提交于 2019-12-04 02:52:49
问题 Today my Sublime 3083 became corrupted! I don't know why but every time I click on a file it opens on the same tab! I cannot open two tabs at the same time. Fist file opens in a new tab and another opens in the previous tab and so on! I did not installed any plugins recently. I just selected "Close Other Tabs" on menu. What can I do? Thanks 回答1: You must open the file using double click. If you open it using single click then you're using a feature called file preview , and that file will be

Move cursor on middle button paste in Sublime Text 3

你离开我真会死。 提交于 2019-12-04 02:00:45
(Note: this question is different from Middle button paste deleted text in Sublime 3 ) I'm using Sublime Text 3 on Linux (but it also applies to Sublime Text 2). As expected, when I middle mouse button click, it copy-pastes the previously highlighted text. Unfortunately, it doesn't move the cursor to the end of the pasted text, which is the default behavior in all other apps I know (instead, it doesn't move the cursor at all). Does anyone know how to change this behavior (do not move cursor on middle-button paste) to the expected one (move cursor to end of pasted text)? Just found a fix, it's

Sublime Text 3 SublimeLinter plugin not able to find jshint

六眼飞鱼酱① 提交于 2019-12-04 01:56:20
For some reason, SublimeLinter3, or the SublimeLinter3 JSHint linter plugin, seems unable to parse the PATH environment variable and is thus unable to run jshint : SublimeLinter: Could not parse shell PATH output: <empty> error: SublimeLinter could not determine your shell PATH. It is unlikely that any linters will work. Please see the troubleshooting guide for info on how to debug PATH problems. SublimeLinter: WARNING: jshint deactivated, cannot locate 'jshint' Can't connect Unable to fetch update url contents The jshint binary is in the PATH , however: $ which jshint /home/path/to/bin/jshint

Sublime Text 3: AutoComplete from anywhere in whole project?

爱⌒轻易说出口 提交于 2019-12-04 01:16:22
I am wondering if there's any way to get smart autocompletion from anywhere in a Sublime project? I found cool package called All Autocomplete which indexes open tabs for autocomplete... but I would love if it searched all files in project. I can't seem to get SublimeCodeIntel to do this... maybe because SublimeCodeIntel is giving me errors in Sublime's console panel? EDIT: Actually, it seems to autocomplete sometimes. Other times I just get the mentioned SublimeCodeIntel eval errors in console panel? Are you using PHP or Javascript? It can be enabling index project files: Preferences |

Is there a Sublime Text Syntax for Flex and Bison?

我的梦境 提交于 2019-12-04 00:50:55
I'm looking for a syntax in Sublime Text that highlights my Flex and Bison files (or lex/yacc) in a way that makes them readable... Sublime Text automatically chooses Lisp for Flex files, but that doesn't do the trick all that well. Any suggestions to try another syntax? Or is there a plugin somewhere that's useful (haven't found anything so far)?. I haven't found one built specifically for Sublime, but I've found one for TextMate, which Sublime is compatible with. Therefore, for Flex highlight, all you need to do is git clone the TextMate's syntax files to your Packages folder. Regarding