sublimetext2

Sublime Text settings on Mac

南笙酒味 提交于 2019-12-19 09:46:54
问题 I'm switching from Windows to a Mac, and I'm having trouble finding where the sublime-settings files are stored. Can anybody point my way? 回答1: If you open Sublime Text 2 -> Preferences -> Browse Packages... the Packages folder will open in Finder. For ST2, it is ~/Library/Application Support/Sublime Text 2/Packages . If you upgrade to ST3 (which I highly recommend doing), the path is ~/Library/Application Support/Sublime Text 3/Packages . In case you're not familiar with Unix paths, ~

Console for Sublime Text 2

依然范特西╮ 提交于 2019-12-19 06:56:47
问题 I'm a beginner in C# and trying to use Sublime Text for my editor. But the default console doesn't seem to support "Console.ReadLine();" I can't find anywhere that I can type my input with. I searched some plug-ins, and found this REPL and CSharpreter. However, REPL doesn't seem to support C# and even when I try to load other languages, error message like this pops up. What can be a good solution? Please help! 回答1: You're looking for a combination of scriptcs, scriptcs-sublime and SublimeREPL

Preventing Sublime to Search Automatically

二次信任 提交于 2019-12-19 05:06:35
问题 I am working on a XML document that contains huge amounts of data. Whenever I want to make a search regarding to a specific keyword (let's assume a 4-letter-word) by typing just the first letter, the sublimetext 2 automatically stars searching thus freezes for a fair amount of time which is quite disturbing. Is there any way for me to prevent sublimetext doing so? For example, it may wait for me till I press the "enter", or it may start searching after 3 letters are typed. 回答1: The Sublime

Shortcut to change a line of words to a vertical list in Sublime Text 2

回眸只為那壹抹淺笑 提交于 2019-12-19 04:40:31
问题 Is it possible to make this title on line 1 a list of items from each word or symbol seperated by a space with a keyboard shortcut. So that I can select the title and then hit a shortcut and it will make the title a list of items like below: Tried saving the Key Binding file. 回答1: Nothing built in, but you can do it with a plugin. import sublime import sublime_plugin import re class SplitLineCommand(sublime_plugin.TextCommand): def run(self, edit, split_pattern=" "): view = self.view cursors

Sublime Text 2 increment numbers

为君一笑 提交于 2019-12-18 21:53:30
问题 I have a JSON file that looks like this: "Algeriet" : [ { "name" : "Nyårsdagen", "date" : "2013-01-01", "ID" : "1" }, { "name" : "Mawlid En Nabaoui Echarif", "date" : "2013-01-24", "ID" : "2" }, { "name" : "Första maj", "date" : "2013-05-01", "ID" : "3" }, ... ] Now I would like to begin incrementing the IDs from 0 instead of 1. How can I do this with Sublime Text 2? I have installed the Text Pastry plugin but I'm not sure how to select the IDs in the text so that I can replace these values.

Modify auto_match of quotes, adding an additional quoting character to Sublime Text 2

蓝咒 提交于 2019-12-18 16:59:48
问题 Sublime Text 2 very helpfully closes all of my quotes. Is it possible to modify which characters it does this with? For example, if I would like to add `backticks` to the list. @skuroda's answer works great. On Mac OSX, go to Sublime Text 2 > Preferences > Key Bindings - User and paste in the text there. Make sure it is ultimately wrapped in [...] (square brackets). 回答1: The auto pairing is simply a few specialized keybindings. This should allow you to auto pair backticks. It should also

Merging files in Sublime with Sublimerge via command line

久未见 提交于 2019-12-18 14:55:27
问题 I'm trying to find a better merge file option and wanted to try out Sublime as of my work is done using it. so I installed Sublimerge and now am stuck. I know I can compare two already open files or compare via the Sidebar but what I want to do is fire it off via the command line so I can kick it off from our source control program like I can with every other merge tool I've seen. Does anyone know the command line format to do this? N.B. - I've long since given up trying to use sublime to

How to add Jquery to Sublime Text 2?

假装没事ソ 提交于 2019-12-18 13:26:44
问题 This may sound stupid. But how do you add Jquery to sublime text 2? Can't seem to get it working. I've added this github. Then created a Jquery folder in my packages. Finally I added this into my head tags. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> But still no luck. 回答1: Sublime Text 2 uses JavaScript syntax for supporting jQuery. In looking at the Github repo you tried, I'm assuming you're wanting some sort of a snippet library. I'd recommend

How to load a tmlanguage file into SubLime Text 2?

那年仲夏 提交于 2019-12-18 12:49:22
问题 I have downloaded a typescript.tmlanguage so that I can have typescript syntax highlighting in the Sublime Text 2 editor. How do I load this file in the editor? (I have searched the editor's manual but there is no clear answer on this one) Thank you. 回答1: You should create Typescript directory in your Packages directory and put typescript.tmLanguage in it. Packages directory can be found with menu Preferences/Browse Packages... . 来源: https://stackoverflow.com/questions/12762736/how-to-load-a

multiple “commands” in a single Sublime Text 2 user keymap shortcut

China☆狼群 提交于 2019-12-18 11:53:09
问题 Is there a way to have multiple "commands" associated with one shortcut? I have these two shortcuts. First shortcut makes the window on the left larger than the right one (in a 2 column view) and the next shortcut puts the focus on the first window. I tend to forget one or the other shortcut when coding quickly. { "keys": ["super+alt+left"], "command": "set_layout", "args": { "cols": [0.0, 0.66, 1.0], "rows": [0.0, 1.0], "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] } }, { "keys": ["ctrl+alt+left"],