sublimetext

Global Python packages in Sublime Text plugin development

孤街浪徒 提交于 2020-01-13 11:28:10
问题 1. Summary I don't find, how Sublime Text plugins developer can use Sublime Text find global Python packages, not Python packages of Sublime Text directory. Sublime Text use own Python environment, not Python environment of machine. Developers needs sys.path for set not built-in Sublime Text Python packages. Is any methods, that use global installed Python packages in Sublime Text plugins? For example, it would be nice, if someone tells me, how I can change my plugin — see 3.2 item of this

How to solve Permission Denied when running Sublime Text 3 from the terminal?

倖福魔咒の 提交于 2020-01-12 17:36:37
问题 The system is a Mac OS X El Capitan running Sublime Text 3. I was perfectly able to run ST3 from the terminal, using the symbolic link by typing "subl". I have no idea what could have possibly changed. Now everytime I try to start subl from the terminal in any given directory (by running "subl .") I get a "Permission Denied" window every 5 seconds. [Sublime opens the specified directory, whichever it is, and then everytime I switch back to ST3, the window pops up "Permission Denied"] The only

How to solve Permission Denied when running Sublime Text 3 from the terminal?

半世苍凉 提交于 2020-01-12 17:36:26
问题 The system is a Mac OS X El Capitan running Sublime Text 3. I was perfectly able to run ST3 from the terminal, using the symbolic link by typing "subl". I have no idea what could have possibly changed. Now everytime I try to start subl from the terminal in any given directory (by running "subl .") I get a "Permission Denied" window every 5 seconds. [Sublime opens the specified directory, whichever it is, and then everytime I switch back to ST3, the window pops up "Permission Denied"] The only

Sublime Text - ignore tab settings for specific file types

我是研究僧i 提交于 2020-01-11 13:03:30
问题 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. 回答1: Unsure about the pasting, but you can set syntax specific settings by going to

Sublime Text - ignore tab settings for specific file types

一曲冷凌霜 提交于 2020-01-11 13:03:07
问题 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. 回答1: Unsure about the pasting, but you can set syntax specific settings by going to

JSHint and skipping lines with custom non-JS templating code

為{幸葍}努か 提交于 2020-01-06 15:32:15
问题 I am using SublimeLinter3 in SublimeText3 with the SublimeLinter-jshint linter. I have server side JavaScript that is processed by a custom CGI. It imports other server side JS files with a import statement that is formatted as follows (the :ssjs just tells the interpreter to process the import as server side JavaScript): %import /foo/bar.js:ssjs Needless to say, this is causing all sorts of problems with JSHint, such as: Expected an identifier and instead saw '%' Expected an assignment or

Why Sublime Text 2 highlights in white everything with no reason

試著忘記壹切 提交于 2020-01-06 13:27:46
问题 It is really annoying. I do not know if it's because I installed something, or what? But suddenly sublime text began to select all php variables or html tags in white for no reason. I've tried turn it off but I have no idea how :( When I open some the file, the code is ok but whenever I edit anything, even without saving, it immediately become marked white :( 来源: https://stackoverflow.com/questions/23559658/why-sublime-text-2-highlights-in-white-everything-with-no-reason

Why Sublime Text 2 highlights in white everything with no reason

烈酒焚心 提交于 2020-01-06 13:27:25
问题 It is really annoying. I do not know if it's because I installed something, or what? But suddenly sublime text began to select all php variables or html tags in white for no reason. I've tried turn it off but I have no idea how :( When I open some the file, the code is ok but whenever I edit anything, even without saving, it immediately become marked white :( 来源: https://stackoverflow.com/questions/23559658/why-sublime-text-2-highlights-in-white-everything-with-no-reason

SublimeText: How to find the command for “Next Build Result” to map it to a different key?

大兔子大兔子 提交于 2020-01-05 03:05:09
问题 Background: I am working on an SML file on SublimeText3 with build system setup. After a build, i can successfully jump to the first error using the F4 key. I want to add another key mapping for the same "Next Result" command eg: Cmd+N in Vintage mode. What should i add as in my keybindings file to achieve this? What documentation,file did you refer/look around to find the proper answer for question 1? What was your thought process in brief to figure it out ? edit: changed the required

Sublime snippet with params on tabTrigger

核能气质少年 提交于 2020-01-04 02:54:27
问题 For example somewhere inside .html file i type: temp:some-id And expect my snippet creation magic to return this with the specified "some-id" : <script type="text/template" id="some-id"></script> So i need a way to trigger some text and pass through some arguments to the snippet creation file so when the triggering happens I can assign that arguments to some tab-placeholder inside .sublime-snippet. Any ideas? P.S. im using sublime text 2, if it matters. 回答1: You should use the variable $TM