sublimetext3

Regexp break long lines [duplicate]

给你一囗甜甜゛ 提交于 2019-12-25 18:52:14
问题 This question already has answers here : How to write RegEx for inserting line break for line length more than 30 characters? (2 answers) Closed 5 days ago . I want to break long lines for 5 characters and doesn`t touch short lines: aaa bbbbbbb cc dddddddddddd into aaa bbbbb bb cc ddddd ddddd dd I`ve found way to find only long lines: ^(.{5,}) , but I've no idea how to break it to fives several times. Another way is: find .{0,5}(\s*|$) replace $0\n - it works but after each previous line it

How to open a file and select/highlight several lines on Sublime from the command line?

徘徊边缘 提交于 2019-12-25 18:13:44
问题 I know subl myfile.txt:5 would open “myfile.txt” on line 5. I however want to be able to, from the command line, open a file with say lines 5,9,15 highlighted or selected. I know adding –command should enable me to do that, but how? What would the command be? 回答1: There's no built-in command that I know of that can do this, but one can easily create one. (Technically, it could be done using the bookmarks functionality from the Default package, and the built-in "Expand Selection to Line"

Sublime Text 3 Settings: Save Twice

主宰稳场 提交于 2019-12-25 10:26:08
问题 I am not sure if this is the correct place to ask this or not, if it's not please let me know where would be the right place. There is a well known issue with LiveReload for Sublime Text in which the changes are not shown unless you save twice. I'm wondering if there is a way to edit the settings to have ST automatically save twice when you hit save. 回答1: You can override the default keybinding to instead save twice. In order to do that you will need a way to call the "save" command more than

Sublime Text 3 Settings: Save Twice

自作多情 提交于 2019-12-25 10:26:03
问题 I am not sure if this is the correct place to ask this or not, if it's not please let me know where would be the right place. There is a well known issue with LiveReload for Sublime Text in which the changes are not shown unless you save twice. I'm wondering if there is a way to edit the settings to have ST automatically save twice when you hit save. 回答1: You can override the default keybinding to instead save twice. In order to do that you will need a way to call the "save" command more than

how do i build system in Sublime Text 3 C++ and Gtk+

China☆狼群 提交于 2019-12-25 07:26:50
问题 I want to build a simple text editor using C++ and Gtk+ in Sublime Text 3. Using Gtk+ for a cross-platform application. For now I'll be satisfied with a simple window, though ST3 keeping popping problems. I'm currently running Windows 7 64Bits. At first I downloaded the gtk+-bundle_3.10.4 64bit to C:\gtk+ and downloaded MinGW - installing gcc-g++ for C++ . Then I updated Environment Variables -PATH with the folder C:/MinGW/bin;C:/gtk+/bin;... and other paths, as suggested Here. Now to "build

No autocomplete popup in JSP files for snippets

拥有回忆 提交于 2019-12-25 05:26:15
问题 I made a bunch of snippets I want to use when I'm editing .jsp files in Sublime Text 2. When I edit a JSP file (syntax: JSP) the autocomplete function doens't work. When I change the syntax to "Java" the autocomplete works. Plan B: it does work with the JSP syntax when I hit 'c: tab'. But there is no autocomplete while typing like with the Java syntax. I tried changing and removing the scope changing the tabTrigger to core-, not using ":", giving every snippet another trigger, giving every

Sublime Text Open New Window API

六眼飞鱼酱① 提交于 2019-12-25 05:16:24
问题 I'm writing a sublime text plugin. I'm trying open few files in new window. In sublime text API reference I found a way to open files with window.open_file(filepath) but I didn't find anything for opening a new window. Can someone please point me to it. I know it's a dumb question but blame it on inadequate documentation :) 回答1: You can use new_window command. sublime.run_command("new_window") sublime.active_window().open_file(filepath) By the way, you can find lots of useful information via

How do I modify jshint sublimelinter settings?

倾然丶 夕夏残阳落幕 提交于 2019-12-25 04:26:18
问题 I am sorrry if this is a duplicate question. I want to turn off warnings for semi-colon, and change appearance of warning cursors in jshint sublimelinter. What file or menu do I need to access to change these settings? 回答1: See this duplicate answer, among the many questions. Create a .jshintrc file in the directory you want to lint (a simple JSON file like this, and drop your options in there. You'll be looking for the asi option for semicolons. To set it globally you can place it in a top

How to jump into next Tag using sublime 3 short cut?

只愿长相守 提交于 2019-12-25 03:15:08
问题 Good day, I have a bunch of <li></li> on my html file. Is there any keyboard shortcut so I can go to next LI without clicking or pressing key many time. for example i have 3 li element, if I am done typing on my first (li) <li>done</li >, then how can i go to next pair of <li></li> " without pressing the -> key or down key many times to be able to type on next <li> pair? Thank you for your tips :) Its just kind of tiring if done often. specially on tables and list items. 回答1: In Emmet

Python: pip install sublime not working

≡放荡痞女 提交于 2019-12-25 00:43:30
问题 I am considerably new to both sublime. However, I really enjoy that one may add lots of feature to sublime using python code. I always do my python on Jupyter notebook. I usually install modules as easy through Anaconda i.e. !pip install sublime I actually coded the following on my jupyter notebook !pip install sublime the outcome: Collecting sublime Downloading sublime-0.1.0.tar.gz Collecting click<4.0,>=3.3 (from sublime) Downloading click-3.3-py2.py3-none-any.whl (58kB) Building wheels for