sublimetext

Django Autocomplete with Anaconda in Sublime Text 3

别来无恙 提交于 2019-12-23 17:04:17
问题 I'm trying to get autocompletion working in Sublime Text 3 via the Anaconda plug-in. So far I've been successful getting autocompletion working with the standard python libraries but not for Django. My sublime project file looks like this: { "folders": [ { "follow_symlinks": true, "path": "." } ], "settings": { "python_interpreter": "/Users/user/.virtualenvs/project/bin/python", "suppress_word_completions": true, "extra_paths": [ "/Users/user/.virtualenvs/project/lib/python2.7/site-packages"

Sublime Text Build System With Options

别来无恙 提交于 2019-12-23 10:09:51
问题 I have various shell build scripts for a project and want to create one centralized build system with options that will allow which shell script to run. For example, a user presses Cmd + B then the user is given the option: 1) shellscript1.sh 2) shellscript2.sh 3) shellscript3.sh The user presses 3 and Sublime Text runs 'sh shellscript3.sh'. I've been reading http://sublimetext.info/docs/en/reference/build_systems.html, but am unsure how to integrate this option in the JSON code for the

Identifying PHP unused and undefied variables sublime

余生颓废 提交于 2019-12-23 09:27:49
问题 I am using sublimetext3 unregistered . I want to know how can I configure sublime to show unused and undefined variables in php .sublimelinter-phplint does some useful work but it cannot recognise autoloaded classes that can be very irritating while development .I am looking for some package that can do it with file scope. I have following packages already installed sublimelinter phpcs 3.sublime-phpcs Is there anyother package that can be userful in developement ? 回答1: http://phpmd.org will

React native beginner index.android.js is not showing

大兔子大兔子 提交于 2019-12-23 09:10:57
问题 There is no code. I am creating a project but some files are missing. Using command react-native init helloworld project is created, but index.android.js and index.ios.js aren't generated or missing, only index.js is appearing. 回答1: This is due to a recent update. New projects have a single entry-point (index.js) from now on (6e99e31) - @fson This shouldn't cause you any trouble during the compilation or run-time. 回答2: I faced the same issue. I build a scratch app. After finding solution on

Can't open sublime text in tmux after upgrading to Yosemite

妖精的绣舞 提交于 2019-12-23 09:09:47
问题 On my Mac OS Yosemite, I can open a terminal and run subl and it opens Sublime Text. But, if I start a tmux session and run subl , I get the error: Unable to launch Sublime Text If I try: open -a "Sublime Text" I get the error: LSOpenURLsWithRole() failed for the application /Applications/Sublime Text.app with error -10810. 回答1: I found an answer for the same problem over in superuser. Unfortunately, there doesn't seem to be a solution to the problem at the moment. The link to the answer is

NVM cannot load default node with default alias set

↘锁芯ラ 提交于 2019-12-23 03:46:22
问题 My problem is almost the same as this one but i already set the default alias. Once i open a new console nvm does not load the default node, this problem is also present with some SublimeText3 plugins (eslint, jscs for example). The only way to make it work is to add nvm use default after loading nvm but i thik i am doing something wrong. How can i make it work without the hack? My configuration brew 0.9.5 nvm 0.26.0 (installed using brew) zsh (with oh-my-zsh) I have nvm sourced in .zshenv

Boundary sensitive Cmd+D in Sublime Text

柔情痞子 提交于 2019-12-22 20:01:33
问题 I'm using Sublime Text 3 on OSX. Using cmd + D , I want to select the next instance of es but not if it's part of another word Given this code I select the first instance of es and see this Perfect! However, when I tap cmd + D a couple times, it will end up selecting this Super annoying! How can I make cmd + D only select the highlighted sections that appear in image 2? 回答1: If you select whole word and press Cmd + d it is going to select like in 3rd image. If you put your cursor (caret) on

How to restore focus to quick panel after focusing some other group to open a file?

不想你离开。 提交于 2019-12-22 12:32:32
问题 Situation is like this: I am writing a plugin that needs to: Open quick panel On hover of first item, focus other group Open in that group Restore focus to quick panel input so I can move to next item in list and so on... I did solve 1-3 but the 4th one gives me troubles. Is there a way to do so? 回答1: You need to get the view associated with the quick panel . The method show_quick_panel doesn't returns the view , but you can get it with using the method on_activated with a EventListener

Hide tabs when opening a new one if you haven't change anything

廉价感情. 提交于 2019-12-22 10:39:19
问题 I am using Atom for first time. Sublime has a great functionality which consists in: You open a file, you just see the content and don't change anything. Then when you open a new file, as you haven't change anything in the last one, then the new file will take the place of the last one. Did you get it ? is there a way to do that with Atom ? 回答1: This is implemented as "Preview Tabs" in the bundled "tabs" package in Atom. Go to Settings > Packages > search for "tabs" > click its "Settings"

brew linkapps for homebrew casks (automatically create symlink to /Applications folder)

我是研究僧i 提交于 2019-12-22 08:46:17
问题 I am using homebrew and homebrew cask to manage my installations on my Mac with OS 10.10.5. After installing an app using "brew cask install", no symlink in the /Applications folder shows up. For apps installed via "brew install", a symlink to /Applications can be created by running the command "brew linkapps" – is there something similar for homebrew casks? In this particular case, some features of the LatexTools package for Sublime Text 2 did not work (open pdf viewer automatically and jump