sublimetext3

Sublime Text 3 - Emmet shortcut for HTML 5 not working.

大兔子大兔子 提交于 2020-01-13 08:55:14
问题 I have recently downloaded sublime text 3 and installed emmet. The issue that I am having is that when I write the short code for HTML 5 and press tab, it doesn't work. This method was used in sublime text 2 and it worked. Does anyone have any solutions to this issue? 回答1: type ! and then press Tab . found the answer on cheatsheet 回答2: Text editor doesn't know what shortcut to expand until you save new file as *.html or change the syntax (bottom/right), because new document starts in plain

Sublime Text 3 - integrated terminal?

旧巷老猫 提交于 2020-01-13 08:26:54
问题 I normally use the WebStorm IDE for Node.js and FE JavaScript development. However I was thinking of using Sublime Text 3 since I am running out of computing power on a crappy old Macbook Pro and ST3 should be lighter on memory and CPU. However, my one hangup is that ST3 doesn't seem to have a command line terminal integration possible. I find this to be a very useful feature that's available in Eclipse and WebStorm. I did some Googling and I don't see any great terminal integration plugins

How to solve Permission Denied when running Sublime Text 3 from the terminal?

倖福魔咒の 提交于 2020-01-12 17:36:37
问题 The system is a Mac OS X El Capitan running Sublime Text 3. I was perfectly able to run ST3 from the terminal, using the symbolic link by typing "subl". I have no idea what could have possibly changed. Now everytime I try to start subl from the terminal in any given directory (by running "subl .") I get a "Permission Denied" window every 5 seconds. [Sublime opens the specified directory, whichever it is, and then everytime I switch back to ST3, the window pops up "Permission Denied"] The only

How to solve Permission Denied when running Sublime Text 3 from the terminal?

半世苍凉 提交于 2020-01-12 17:36:26
问题 The system is a Mac OS X El Capitan running Sublime Text 3. I was perfectly able to run ST3 from the terminal, using the symbolic link by typing "subl". I have no idea what could have possibly changed. Now everytime I try to start subl from the terminal in any given directory (by running "subl .") I get a "Permission Denied" window every 5 seconds. [Sublime opens the specified directory, whichever it is, and then everytime I switch back to ST3, the window pops up "Permission Denied"] The only

Sublime Text - ignore tab settings for specific file types

我是研究僧i 提交于 2020-01-11 13:03:30
问题 Is it possible to have Sublime Text 3 ignore the "translate_tabs_to_spaces" settings for specific file types (namely .tsv , .csv and .txt )? Additionally, is it possible to have ST3 not translate tabs when pasting ? eg, I might copy text from a .tsv and paste it into a new file. I want to preserve the tabs. Right now, this involves changing my preferences, pasting, then changing back those preferences. 回答1: Unsure about the pasting, but you can set syntax specific settings by going to

Sublime Text - ignore tab settings for specific file types

一曲冷凌霜 提交于 2020-01-11 13:03:07
问题 Is it possible to have Sublime Text 3 ignore the "translate_tabs_to_spaces" settings for specific file types (namely .tsv , .csv and .txt )? Additionally, is it possible to have ST3 not translate tabs when pasting ? eg, I might copy text from a .tsv and paste it into a new file. I want to preserve the tabs. Right now, this involves changing my preferences, pasting, then changing back those preferences. 回答1: Unsure about the pasting, but you can set syntax specific settings by going to

How to use a custom font in SublimeText

跟風遠走 提交于 2020-01-11 08:43:07
问题 I know a user can change the font_face in preferences with: "font_face": "gohufont-11", "font_size": 11, But, every-time I try to add a (already installed) non-system font, like Gohufont above, it does not work. 回答1: Install the TTF version of the font despite the platform-specific fonts available from here. Install the font, installation is OS specific process (in your case use Install font menu entry from windows fonts folder). Copy paste "font_face": "GohuFont", to your user preferences

Regular Expressions, understanding lookbehind in combination with the or operator

隐身守侯 提交于 2020-01-11 07:27:46
问题 This is more a question of understanding than an actual problem. The situation explains as follows. I got some float numbers (e.g. an amount of money) between two quotation marks "". Examples: "1,23" "12,23" "123,23" Now I wanted to match the comma in those expressions. I built the following regex which works for me: (?<=\"[0-9]|[0-9]{2})(,)(?=[0-9]{2}\") The part which I don't completly understand is the lookbehind in combination with the or "|". But let's break it up: ( ?<= //Start of the

Identify Sublime Text 3 snippet source

只愿长相守 提交于 2020-01-11 07:27:06
问题 Does anyone know how I can identify where a Sublime Text 3 code snippet is coming from? There's one for Rails that I thought was coming from a certain package. I've uninstalled said package but the snippet is still available for use. It's driving me nuts 回答1: Press Ctrl + Backtick to open the console, paste the following code, and press Enter . sublime.active_window().new_file().run_command( "append", { "characters": "\n".join( sorted( sublime.find_resources( "*.sublime-snippet" ) ) ) } ) A

Run shell script when saving a file in Sublime Text 3

左心房为你撑大大i 提交于 2020-01-10 19:39:30
问题 I'm just curious, is it possible to run shell script automatically when I hit CTRL+S in Sublime Text 3 on Linux. It may be useful for generating CSS when modifying SASS, for example. Thank you. 回答1: Check out SublimeOnSaveBuild. All you need to do is set up a build system like SASS Build, LESS-build, Nodejs, etc., or your own custom build system, so that it's working without intervention when you press Ctrl B . Then, enter the particulars into SublimeOnSaveBuild's config file (which allows