sublimetext3

How to use sidebar with the keyboard in Sublime Text 2 and 3?

↘锁芯ラ 提交于 2019-12-02 13:50:15
When using Sublime Text 2 we tend to open the side bar to navigate thru files/folders in our projects. For that we can use the hotkey ctrl+k ctrl+b (in windows). However, once we're in the side bar , we can't use it with keyboard (arrows for instance). We have to stick using it with our own mouse... Just a note : I installed SideBarEnhancements plugin, but I didn't find anything that could solve my problem. Any solution you might know? Riccardo Marotti You can type Ctrl + 0 ( Ctrl + Zero ) to focus on the side bar. Then you'll be able to move selection among files with arrow keys and to open

Replace \\n with actual new line in Sublime Text

允我心安 提交于 2019-12-02 13:47:16
How can I replace \n in Sublime Text with real in-editor displayed new line so: foo\nbar becomes: foo bar in the editor when I view the file in it. Turn on Regex Search and Replace (icon most to the left in search and replace bar or shortcut Alt + R ) Find What: \\n Replace with: \n Cheers Sash Use Find > Replace , or ( Ctrl + H ), to open the Find What / Replace With Window, and use Ctrl + Enter to indicate a new line in the Replace With inputbox. Ciprian Tomoiagă Fool proof method (no RegEx and Ctrl + Enter didn't work for me as it was just jumping to next Find ): First, select an occurrence

Sublime text editor: how to select all instances of selected region?

江枫思渺然 提交于 2019-12-02 13:47:07
Is there a shortcut key or single-step menu option to find and select all instances of a highlighted selection in Sublime Text? Kurt UXD On Mac OS you can use: CMD + CTRL + G oli On Windows/Linux press Alt + F3 . " On Windows/Linux press Alt+F3. " Worked for me on Ubuntu. I changed it in my 'Key-Bindings:User' to something that I liked better though. Note You should not edit the default settings, because they get reset on updates/upgrades. For customization, you should override any setting by using the user bindings. On Mac: Sublime Text 2 > Preferences > Key Bindings-Default Sublime Text 3 >

RegEx filter not working in Sublime Text search

喜欢而已 提交于 2019-12-02 13:23:28
问题 I'm trying to find all the camel case strings in a Sublime project that meet the following criteria: Begins with at least one lowercase letter, followed by at least one capital letter, followed by at least one lowercase letter or capital letter Appears between single quotes. Contains no spaces, numbers, or non-alphabetical characters. Here is my expression: ('[a-z]{1,}[A-Z]{1,}[a-zA-Z]{1,}') This works perfectly in the RegExr simulator, but in Sublime Text's search, it returns all kinds of

Sublime Text - ignore tab settings for specific file types

自作多情 提交于 2019-12-02 10:49:57
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. Unsure about the pasting, but you can set syntax specific settings by going to Preferences -> Settings - More -> Syntax Specific - User . You can also check out https://github.com/randy3k

How can I access python shell in sublime text 3? [duplicate]

和自甴很熟 提交于 2019-12-02 10:43:17
问题 This question already has an answer here : Issue with Sublime Text 3's build system - can't get input from running program [duplicate] (1 answer) Closed 3 years ago . Is it possible to set up sublime text for full stack python development. By this, I mean the following: 1. python shell where I can input an expression and instantly get the result, 2. the shell will work for the 'input' method, which will prompt the user to enter data. I have installed the theme and color scheme, but the

Sublime will not print certain unicode chars on windows

为君一笑 提交于 2019-12-02 09:06:47
Been having some issues lately on my work machine (windows), where printing certain Unicode characters displays nothing. No error, just the script finishes and there is empty space in the build section. As an example: print(u'New Year\u2019s Day') [Finished in 0.2s] Not sure why this is happening as the default encoding is utf-8 in sublime as far as i know, and \u2019 is very clearly a valid utf-8 character. As requested... sublime config: { "cmd": ["C:/Users/<username>/AppData/Local/Continuum/Anaconda3/python.exe","$file"], "selector":"source.py" } Try setting PYTHONIOENCODING=utf-8

Sublime snippet for ajax not working

僤鯓⒐⒋嵵緔 提交于 2019-12-02 09:03:10
问题 I am trying to create a snipped that every time I type ajax follow by the tab button to insert code, but when I type ajax and press the tab button it just deletes the ajax text for the snippet, I have saved it as ajax.sublime-snippet My snippet <snippet> <content><![CDATA[ $('#${1:binder}').on("", function() { $.ajax({ url: ${2:url}, type: ${3:post}, success: function(data) { if(!data.success) { $('#error_message').html(data.error + alert_close).show(); }else{ $('#success_message').html(data

Sublime Text 3 sftp plugin proxy setting

家住魔仙堡 提交于 2019-12-02 08:16:54
问题 I've installed sftp plugin for Sublime Text 3. Is it possible to configure sftp with proxy? I am looking for any proxy settings. Does anyone know about this? 回答1: Use ProxyCommand inside sftp_flags . Something like this worked for me: // Destination server info "host": "dest.example.com", "user": "foo", // Proxy server info "sftp_flags": [ "-o", "ProxyCommand ssh foo@proxy.example.com -i ~/.ssh/bar.pem -W %h:%p" ] 回答2: Try to add this in your "Package Control.sublime-settings": "http_proxy":

Regex to match a string with specific start/end

不打扰是莪最后的温柔 提交于 2019-12-02 08:08:57
问题 I'm trying to match all occurrences of strings starting with -- and ending with a single space . The file I'm handling is the OpenVPN manual and I want all options mentioned (e.g. --option ). I'm working with Sublime Text and according to its cheatsheet they support \A and \Z to denote start and end of strings. Thus, I thought \A--.* \Z should match all strings, starting with -- and ending with . However, this doesn't match anything at all. What regex would match all strings, starting with a