sublimetext3

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 3 PHP UNIT

拜拜、爱过 提交于 2019-12-23 15:07:20
问题 In Sublime Text 3 PHP Unit doesn't work. Bundle has installed correctly but plugin is inactive. Has anyone resolved the problem? Thanks in advance. 回答1: I strongly suggest you to use this package which isn't available on Package Control: Sublime-PHPUnit You need to pull this in manually by navigating to ~/Library/Application Support/Sublime Text 3/Packages and paste it in. If you setup a few key binding, the workflow is very snappy. Watch this video for more info: Instant PHPUnit Feedback and

python libclang bindings on Windows fail to initialize a translation unit from sublime text

空扰寡人 提交于 2019-12-23 13:32:59
问题 Short description : using libclang to autocomplete code does not work with python that comes bundled with Sublime Text 3. Details : A small verifiable example is in the repo on Github In essence, there is a script that uses a slightly changed cindex.py (compatible with python 3 and clang 3.8) and builds a Translation Unit from a test source file. It then reparses it and tries to complete. The script works as expected on using Python 3.3.5 from Powershell. When put into Packages folder on

Mac OS X /bin/bash: python: command not found in some IDE

馋奶兔 提交于 2019-12-23 12:59:14
问题 When I compiled test.py (a very simple Python file) in Sublime Text or CodeRunner, I got the error: /bin/bash: python: command not found . Then I input python test.py in the Terminal app, it worked. Later I downloaded Pycharm and compiled the file again, it worked too! So I assume there is some kind of path setting or something else that was not set correctly. I've searched for quite a long time on the internet but no use. Please help or try to give some ideas how to solve the problem. Here

sublime text multiple cursor shortcut

落爺英雄遲暮 提交于 2019-12-23 11:33:13
问题 I'm a huge user of emacs and I absolutly love the fact that you can do EVERYTHING without using the mouse. I thing that feature make emacs really efficient. I'm also a big fan of Sublime Text on Linux. I like the multiple cursor feature that you enable with Ctrl+left_mouse_clik . I also found that you can click Shift+alt+arrow_up_or_down which create a new cursor on the above or below line. So I was wondering if there was a way in sublime text to create multiple cursor wherever you want

sublime text multiple cursor shortcut

送分小仙女□ 提交于 2019-12-23 11:32:23
问题 I'm a huge user of emacs and I absolutly love the fact that you can do EVERYTHING without using the mouse. I thing that feature make emacs really efficient. I'm also a big fan of Sublime Text on Linux. I like the multiple cursor feature that you enable with Ctrl+left_mouse_clik . I also found that you can click Shift+alt+arrow_up_or_down which create a new cursor on the above or below line. So I was wondering if there was a way in sublime text to create multiple cursor wherever you want

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

Split single view horizontally in Sublime

馋奶兔 提交于 2019-12-23 08:36:17
问题 I'm using Sublime Text 3. I want to edit a single file, but split it horizontally so I can edit two parts of the document (similar to MS Word). Under view>layout>rows, it shows a file horizontally. However- it only allows a new file (not the same file). Is this possible? 回答1: As you said you need to split the view by using View -> Layout - > Rows: 2 . Then being on the Row 1 you need to go to File -> New View into File . It will open second tab with the same file. Then you can drag that tab

How to format “one line html” as a pretty document in sublime? [duplicate]

泪湿孤枕 提交于 2019-12-23 07:58:14
问题 This question already has answers here : How do I reformat HTML code using Sublime Text 2? (15 answers) Closed 6 years ago . I have a html source file containing only one line like the following: <html><head>test</head><body>wow</body></html> , and I want to format it as following: <html> <head> test </head> <body> wow </body> </html> , I have used the command: Edit-> Line-> Reindent but it doesn't work. 回答1: In Sublime Text try this: Highlight the last character in the first tag: " > " Use

How can I convert a Sublime Text syntax highlighting file to a textmate syntax for visual studio?

拟墨画扇 提交于 2019-12-23 03:35:22
问题 I am trying to start using visual studio for my code editing instead of Sublime Text 3. In sublime text 3, I have a custom syntax file for a language I work in. I would like to be able to carry the syntax highlighting over to visual studio. I am not quite sure how I could do that without starting from scratch. Any ideas? In response to Matt, here is an update: I have been trying to get it to work, but I have had no luck. It does say that textmate languages are supported: https://docs