sublimetext2

How do i use package control to install packages in sublime text?

不打扰是莪最后的温柔 提交于 2020-01-13 10:52:49
问题 I am using sublime text 2. I have successfully installed Package Control. Now that Package Control is installed, how do I go about installing packages? 回答1: On a mac use cmd + shift + p (or click Tools -> Command Palette ) and type install into the dropdown menu. It should bring up Package Control : Install Package . Hit enter and start typing the name of the package you wish to install. 回答2: Installing Packages on sublime3: Press Ctrl+Shift+P Then type install and select first option Package

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

Adding jQuery to sublime text 2

大城市里の小女人 提交于 2020-01-13 05:48:28
问题 I am new to jQuery world, and only today started using sublime text 2. Therefore, I am not aware of what packages I have to download and how to download. So, I would kindly request if anyone know how do I add jQuery to use it in my sublime text 2 editor. It will be great if you can give me a step by step instructions, like I said I am new to this. Also, how to get list of selections for jQuery. Any help would be greatly appreciate it. Thanks :] 回答1: jQuery is a JS library. To use it you need

Change keyboard shortcut in sublime text 2

自古美人都是妖i 提交于 2020-01-12 14:02:46
问题 How do i change the current keys for selecting all with the multiple cursor to CMD + G? 回答1: The keyboard shortcuts are referrred to as key bindings in Sublime Text 2. There is documentation here and here that will show you how to manipulate them. Click "Preferences" > "Default Key Bindings" to view them. Copy and paste the ones you want to edit into "Preferences" > "User Key Bindings" e.g. <binding key="cmd+t,u" command="upperCase"/> As noted in the comments, the config is now in json format

Sublime text regex find and replace

只愿长相守 提交于 2020-01-12 05:36:08
问题 In sublime text, I need to replace all instances of: rs('???????') with $rs['??????'] (keeping the ??????? part the same). I'm a regex virgin and I've only got as far as locating the regex button on the find and replace panel. How is this possible. 回答1: Find regex: rs\('(.*?)'\) Replace: $rs['$1'] Beware that this will expect anything inside the quotes; if it isn't what you need, please tell me :) 来源: https://stackoverflow.com/questions/17617961/sublime-text-regex-find-and-replace

Can i add date time for sublime snippet?

风格不统一 提交于 2020-01-11 14:48:14
问题 I want to create a snippet that will add a file comment, but I want the snippet to create the DateTime automatically. Can a sublime snippet do that? <snippet> <content><![CDATA[ /** * Author: $1 * DateTime: $2 * Description: $3 */ ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <tabTrigger>/header</tabTrigger> <!-- Optional: Set a scope to limit where the snippet will trigger --> <scope>source.css,source.js,source.php</scope> </snippet> 回答1: Tools > New

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

Is it possible to disable syntax highlighting in Sublime REPL-tabs?

前提是你 提交于 2020-01-11 04:39:07
问题 Is there any way to disable the syntax highlighting in SublimeREPL-tabs when a script is running? Please see this question for context: Red lines coming up after strings in SublimeREPL (python)? For example, when python-scripts run in Sublime REPL, apostrophes (') in the output-text get highlighted as syntax. Because of this, the last part of the line is highlighted as if the string (which in fact is text-output and not actual code) was not closed properly. This is what the output looks like: