sublimetext2

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

别说谁变了你拦得住时间么 提交于 2019-12-21 12:41:13
问题 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

Writing custom completions in Sublime Text 2

我是研究僧i 提交于 2019-12-21 07:29:09
问题 Sublime Text 2 comes with many built-in completions/templates for common idioms. In C++, these include for loops with fields, etc - if I wrote vec and pressed tab, it would expand to std::vector<field> v; where field is a writeable field. Many of these are written in a style that I do not like or do not provide things that I would like them to, and some that I want to use do not exist. Is there a way to modify these built-in "completions" and write my own? 回答1: I believe you're looking to

Ctrl+M to run Makefile with Sublime+Linux

人走茶凉 提交于 2019-12-21 05:25:12
问题 I'm currently thinking about switching from Pluma (former gEdit) to Sublime Text. What I have seen so far from Sublime Text is pretty nice. I currently test Submlime Text 2 and would like it to execute make in the folder of the document that is currently opened when I press Ctrl + M . Is that possible? How do I do it? When I currently hit Ctrl + M it does build the LaTeX document I currently view, but it does not use my Makefile . That is bad, because it fails to build my main document which

How to turn removing whitespaces off for some files in Sublime Text 2?

放肆的年华 提交于 2019-12-21 04:53:13
问题 I have an option trim_trailing_white_space_on_save turned on. And for some files I should prevent removing trailing white spaces, because they are important. How to remove this behaviour for some files, e.g. *.dat? 回答1: Have you already tried to create a configuration file for that specific extension and put trim_trailing_white_space_on_save = false ? Settings Files Settings files are consulted in this order: Packages/Default/Preferences.sublime-settings Packages/Default/Preferences (<

How can I open all files in a directory with sublime text 2?

陌路散爱 提交于 2019-12-21 04:14:27
问题 I am using windows and have successfully added sublime to the PATH. It seems that commands like -b for open in background do not work for whatever reason. My question is how can I open a directory with the command subl ./dir and open each file individually? Right now it adds it to the project and I would much rather it just open every file separately. 回答1: You can try > subl dir/* Alternatively, you can open the project in a dir > subl dir and then install EnhancedSidebar package in sublime.

How to search multiple files of specific file type within Sublime Text 3

左心房为你撑大大i 提交于 2019-12-21 03:41:31
问题 I would like to search for a string within all *.php files in a certain directory (and its sub-directories) using the Shift + Ctrl + F search dialog. My guess was to set the search location to: c:\example\*.php but that gives an error: Unable to open c:\example\*.php Is there a way to perform the search I'm hoping to perform? 回答1: C:\example,*.php In the Where: click ... , select Add Folder , after that select Add Include Filter 来源: https://stackoverflow.com/questions/28751213/how-to-search

Regular Expression in sed for multiple replacements in one statement

大憨熊 提交于 2019-12-21 03:10:56
问题 I want to sanitise some input and replace several characters with acceptable input, e.g. a Danish ' å ' with ' aa '. This is easily done using several statements, e.g. /æ/ae/ , /å/aa/ , /ø/oe/ , but due to tool limitations, I want to be able to do this in a single regular expression. I can catch all of the relevant cases ( /[(æ)(ø)(å)(Æ)(Ø)(Å)]/ ) but I replacement does not work as I want it to (but probably completely as intended): $ temp="RødgrØd med flæsk" $ echo $temp RødgrØd med flæsk $

Stop Alt key bringing up the menu in Sublime Text 2

佐手、 提交于 2019-12-20 16:20:42
问题 I'm an Emacs user looking into Sublime Text 2. I've remapped the default Emacs key bindings and have become accustomed to moving about using Alt+i, Alt+k, Alt+j, Alt+l for up, down, left and right. I haven't had any issues remapping those keys in Sublime Text. The problem is that whenever I use these keys to navigate the menu pops up even though I've hidden it in distraction free mode. I would like to stop the menu coming up when I press the Alt key. If possible I would like to remap the key

Using other editor with TortoiseHg

感情迁移 提交于 2019-12-20 12:32:08
问题 I'm trying to use other editor with TortoiseHG, instead of (Windows) Notepad. I have tried the solutions mentioned here: Mercurial and Notepad++ Integration and here: https://bitbucket.org/tortoisehg/thg/wiki/OpenAtLine But no results. When I right-click a file and choose "Edit Local" no file is opened at all, except when I don't set any specific editor (then file is opened in Notepad). I have tried different editors, like Notepad++ and Sublime Text 2, and no result. Also, I tried to change

Sublime Text 2 build via simple batch file

我怕爱的太早我们不能终老 提交于 2019-12-20 12:17:10
问题 I've been playing a bit with ST2 and it seems like a pretty cute editor. Unfortunatelly, its documentation is horrible. And I'm being nice. So here's my question. I have five files in a directory, which I usually build via a .bat file with ifort file1.f90 file2.f90 file3.f90 ... how can I define and execute this line on windows cmd (taking account the enviromental variables like PATH) from ST2 via a shortcut and see the output? Is something like that even possible at this stage with ST2? 回答1: