sublimetext3

why custom-build python 2.7.x in sublime text 3.x doesn't run accordingly

二次信任 提交于 2019-12-13 03:53:45
问题 def a(x): assert x>0,'invalid argument' print 'wow' a(2) a(0) this should first print "wow" and then it should raise an exception but instead it prints.The "wow" is splited as "wo" before "assert x>0" and after "AssertionError" on third last line and it keeps changing unpredictly but not once before "Traceback": Traceback (most recent call last): File "E:\Books\Python\think python\assert.py", line 6, in <module> a(0) File "E:\Books\Python\think python\assert.py", line 2, in a wo assert x>0,

multiple syntax highlighting in sublimetext 3 with .sublime-syntax file type

允我心安 提交于 2019-12-13 03:20:05
问题 I'm using zk framework and I need to do a sublime-syntax file that highlights in XML syntax, but in the zscript snippet uses java syntax highlighting and in style context uses CSS syntax. This is an example of zk code: <zk> <style> .myClass{ width=300px; } </style> <div id="panel1" class="myClass" visible="true" > <hlayout width="100px"> <image id="icon1" src="/Desktop/image1.png" width="32px"></image> <image id="icon2" src="/Desktop/image1.png" width="50px"></image> </hlayout> </div>

Sublime only opens in Sublimerge view

≡放荡痞女 提交于 2019-12-13 01:42:44
问题 I have the plugin Sublimerge installed in Sublime Text 3 . In order to compare two files Sublimerge opens a new window (but without any menu). That is fine since the original Sublime window is still there. Unfortunately the diff-window was the last one I closed and when I restart Sublime it opens the diff-view without menu. Question is: How can I restore the default Sublime view? To make my problem visible, this is what it looks like now: Edit: Sublime is running on Linux Mint and is set to a

Packagecontrol.io down

大憨熊 提交于 2019-12-12 19:17:19
问题 Hi I am trying to download a package on sublime but for hte past two days packagecontrol.io doesnt seem to be working. Keep getting a 502 bad gateway error. Is there any one else facing the same issue? 回答1: Basically the plugin maintainer is recovering the database server from a file system corruption. Here's more information about it: sublime text forum. A user there recommended the google-cached version of the website if you need it. 来源: https://stackoverflow.com/questions/54162970

cannot get sublime text 3 command line tools to work

梦想的初衷 提交于 2019-12-12 18:24:53
问题 I had sublime text 2 command line tools working. When I downloaded Sublime Text 3, I could not get the command line tools to work. I've tried every answer here: Open Sublime Text from Terminal in macOS. When I type: ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl I get back: ln: /usr/local/bin/subl: File exists but no matter what I do I still get back -bash: subl: command not found 回答1: Remove the existing link first. It must be a broken link. List

Sublime Text indentation issue

心不动则不痛 提交于 2019-12-12 17:09:10
问题 I encountered an indentation issue while combining html and jsp tags. Steps to reproduce: File > New File (Ctrl+N) View > Syntax > Java > Java Server Page (JSP) Paste the following code: <ul> <c:if test="${a > 0}"> <li>a</li> </c:if> </ul> Select all the content (Ctrl+A) and run Ctrl+Shift+P > Indentation: Reindent Lines The result is: <ul> <c:if test="${a > 0}"> <li>a</li> </c:if> </ul> Tested running Build 3047 under Windows 7 x64. Any clues? 回答1: For ST2 : Open the html package and edit

Correct add site-packages folder to Sublime Text 3 sys.path

为君一笑 提交于 2019-12-12 17:08:48
问题 1. Summary I don't understand, how I can make, that global site-packages path will add to Sublime Text 3 sys.path in each Sublime Text 3 start. 2. Reason I want, that in Sublime Text plugins would be possible use globally installed packages. See more in Global Python packages in Sublime Text plugin development question. 3. Example Example part of my plugin: import os import sublime_plugin import sys from duckduckgo import query # noqa from pygoogling.googling import GoogleSearch # noqa # Any

Sublime Text 3 - Language specific Goto definition Keyboard Shortcut

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 14:54:33
问题 How can I set "Goto Definition" work according to the language I'm working on. For example: In Python I want to use PythonIDE's go to definition: { "keys": ["ctrl+d"], "command": "python_goto_definition" }, And, for any other language, for instance Go, I want to use GoSublime's go to definition: { "keys": ["ctrl+d"], "command": "go_sublime_goto_definition" }, I'm wondering how can I set the context? 回答1: The context that you want is for selector : { "keys": ["ctrl+d"], "command": "python_goto

How to auto-reload current file in sublime text

允我心安 提交于 2019-12-12 13:14:23
问题 Sometimes I would like to modify files in another text editor and switch back, but Sublime Text 3 wouldn't reload the current file that I edited before. How do I get it to reload the file automatically? 回答1: There's a setting to control whether you get to see a prompt, but otherwise Sublime Text reloads the file automatically by default. See the setting in Preferences.sublime-settings : // Always prompt before reloading a file, even if the file hasn't been // modified. The default behavior is

How to edit built in command behavior

丶灬走出姿态 提交于 2019-12-12 09:58:00
问题 I want to edit find_under_expand ( ctrl+d ) to consider hyphenated words, as single words. So when I try to replace all instance of var a , it shouldn't match substrings of "a" in words like a-b , which it currently does. I'm assuming find_under_expand wraps your current selection in regex boundaries like this: \ba\b I need it to wrap in something like this: \b(?<!-)a(?!-)\b Is the find_under_expand command's source available to edit? Or do I have to rewrite the whole thing? I'm not sure