sublimetext3

Open files and folders in same window in Sublime Text

☆樱花仙子☆ 提交于 2019-12-31 08:42:42
问题 If I open ~/foo.txt then open ~/baz/bar.txt from Terminal, Sublime Text always opens 2 different windows. It's aggravating to have all these different windows open.. I've tried changing a bunch of ST's settings, but nothing seems to fix this. Is there a way to have ALL files and folders just open up in the same window as if I were manually adding all these folders to the project? 回答1: In Sublime Text Menu: Preferences -> Settings - User Look for ' open_files_in_new_window ' And change ' true'

Is there a shortcut for Sublime Text to find an open file (Eclipse Ctrl + E)?

ぃ、小莉子 提交于 2019-12-30 11:06:29
问题 Ctrl + P of Sublime Text lets me find a file from all project files. However, there are too many duplicated names. I’m looking for a shortcut key like Ctrl + E in Eclipse, so that I just need to find the file in my opened file. That would save a lot of key striking. Probably called “sidebar filter”? Does not matter if it’s 2 or 3. 回答1: Sounds easy to implement just select Tools >> Developer >> New Plugin... and add the content: import sublime_plugin import os def _show_name(name): return ([os

Sublime Text Plugin : Adding python libraries

放肆的年华 提交于 2019-12-30 09:58:34
问题 I'm trying to write a sublime text plugin which would make some windows api calls. I did some research and found out that this python library provides the API's that I need to use. So, I'm trying to to use this library. When I add import statement for it in my sublime text plugin it gives me error ImportError: No module named win32api I'd assume that it's because sublime text comes with inbuilt python and I haven't actually installed these libraries on my system it's throwing up these errors.

Possible to switch between python 2 and 3 in Sublime Text 3 build systems? (Windows)

馋奶兔 提交于 2019-12-30 07:17:14
问题 All my current coding has been in python 3, which I've installed via the Anaconda package. However I need to work on some code simultaneously in python 2. Is there a way I can add a build system in Sublime so I can switch between the two fluidly? I have both python 2 and 3 installed, however can't see a way of simply editing the build system slightly to switch between the two languages. The build system I'm using for python 3 is: { "cmd": ["python", "-u", "$file"], "file_regex": "^[ ]*File \"

Xdebug unable to connect to client, where do I start debugging the debugger?

我与影子孤独终老i 提交于 2019-12-30 04:06:13
问题 I'm setting up xdebug for php within sublime text, and xdebug keeps on logging errors related to being unable to connect: Log opened at 2016-08-18 21:06:01 I: Connecting to configured address/port: localhost:9988. E: Could not connect to client. :-( Log closed at 2016-08-18 21:06:01 I hoped that debugging directly by going to http://localhost:9988 in my browser might help, but it simply displays the google chrome error page: "localhost refused to connect". Perhaps the error exists on the

Stop Sublime Text from executing infinite loop

℡╲_俬逩灬. 提交于 2019-12-30 03:06:56
问题 When I do something like while True: print('loop') and execute that code in sublime I am not able to stop it. I have to manually kill the process and restart sublime. Is there a way of setting some kind of 'max_execution_time' or any other workaround which allow us to stop this nicely? 回答1: You want to use Ctrl + Break . For your own information, just go check under Tools in Sublime Text and you'll see Cancel Build and the above hotkey. It'll work just fine for infinite loops. Suffice to say,

Stop Sublime Text from executing infinite loop

依然范特西╮ 提交于 2019-12-30 03:06:10
问题 When I do something like while True: print('loop') and execute that code in sublime I am not able to stop it. I have to manually kill the process and restart sublime. Is there a way of setting some kind of 'max_execution_time' or any other workaround which allow us to stop this nicely? 回答1: You want to use Ctrl + Break . For your own information, just go check under Tools in Sublime Text and you'll see Cancel Build and the above hotkey. It'll work just fine for infinite loops. Suffice to say,

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

纵饮孤独 提交于 2019-12-29 10:09:33
问题 Is there a shortcut key or single-step menu option to find and select all instances of a highlighted selection in Sublime Text? 回答1: On Mac OS you can use: CMD + CTRL + G 回答2: On Windows/Linux press Alt + F3 . 回答3: " 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. 回答4: Note You should not edit the default settings, because they get reset on updates/upgrades. For customization, you should override any

Sublime Text 2 auto completion popup does not work properly

北战南征 提交于 2019-12-28 05:14:13
问题 I got problem with jQuery Snippet that i installed throughout package control. After installation I do not have popup with jQuery code hints and intalisance. Look at this video: http://code.tutsplus.com/courses/perfect-workflow-in-sublime-text-2/lessons/adding-snippets-through-package-control On 0:50 after typing . he got popup with code hints - I don't have this one. I have to type . on and then press Tab to display popup with snippet... And yes, I'm in JavaScript file and I got default

How to open remote files in sublime text 3

浪尽此生 提交于 2019-12-28 04:38:09
问题 I am connecting to remote server using "mRemoteNG" and want to open remote server files in my local sublime text editor. During my research, I found this relevant blog https://wrgms.com/editing-files-remotely-via-ssh-on-sublimetext-3/ and followed the instructions but it is not working for me. Does, anybody know how can I open remote files in my Sublime? 回答1: On server Install rsub: # wget -O /usr/local/bin/rsub \https://raw.github.com/aurora/rmate/master/rmate # chmod a+x /usr/local/bin/rsub