sublimetext2

Autocomplete for OpenCV-Python in Windows not working

拥有回忆 提交于 2019-12-17 15:59:08
问题 I cannot get autocomplete working for OpenCV (Python) on Windows. According to Abid's instructions here, I pasted the cv2.pyd file in the C:\Python27\Lib\site-packages. In the Python code, I import as follows: import cv2.cv as cv I have also installed numpy, and it created its own folder in site-packages unlike OpenCV (which I've pasted directly into site-packages). With this setup, the code executes without any problems, even when OpenCV methods are called. But I have not been able to get

What is PEP8's E128: continuation line under-indented for visual indent?

ぐ巨炮叔叔 提交于 2019-12-17 14:58:55
问题 Just opened a file with Sublime Text (with Sublime Linter) and noticed a PEP8 formatting error that I'd never seen before. Here's the text: urlpatterns = patterns('', url(r'^$', listing, name='investment-listing'), ) It's flagging the second argument, the line that starts url(...) I was about to disable this check in ST2 but I'd like to know what I'm doing wrong before I ignore it. You never know, if it seems important I might even change my ways :) 回答1: PEP-8 recommends you indent lines to

How to install plugins to Sublime Text 2 editor?

蓝咒 提交于 2019-12-17 08:01:57
问题 How to install plugins to the Sublime Text editor? I would like to install Emmet plugin to Sublime Text 2 editor. 回答1: You should have a Data/Packages folder in your Sublime Text 2 install directory. All you need to do is download the plugin and put the plugin folder in the Packages folder. Or, an easier way would be to install the Package Control Plugin by wbond. Just go here: https://sublime.wbond.net/installation and follow the install instructions. Once you are done you can use the Ctrl +

How do I see the current encoding of a file in Sublime Text?

一个人想着一个人 提交于 2019-12-17 07:58:12
问题 How do I see the current encoding of a file in Sublime Text? This seems like a pretty simple thing to do but searching has not yielded much. Any pointers would be appreciated! 回答1: Since this thread is a popular result in google search, here is the way to do it for sublime text 3 build 3059+: in user preferences, add the line: "show_encoding": true 回答2: Another option in case you don't wanna use a plugin: Ctrl + ` or View -> Show Console type on the console the following command: view

Sublime text multiple language syntax highlight?

杀马特。学长 韩版系。学妹 提交于 2019-12-14 03:21:28
问题 Is there something like multiple language highlight syntax in Sublime Text? For example my code might look like this: {% extends "template.html" %} {% block content %} {% if task == 'archimed_spiral' %} <p> $\frac{2}{3}$ </p> {% elif task == 'gcd' %} {% endif %} {% endblock %} Which is LaTeX inside html inside Jinja2. It gets pretty hard to read it properly. Note I know about Jinja2 package for Sublime, so it does highlight Jinja2 + html. Maybe I am just asking for too much.. 回答1: Yes you can

Set syntax for a specific file name in Sublime Text 2/3

二次信任 提交于 2019-12-14 02:17:54
问题 I have a program that uses a file called user.cfg to get its user defined configuration settings. The odd thing is that they chose the syntax for this file to be Tcl (it's not odd that it is Tcl, it's odd they chose the .cfg extension instead of .tcl ). So, when I open this file in Sublime Text, it doesn't know what syntax highlighting scheme to choose. What I would like to do is set the syntax highlighting for user.cfg to Tcl, but not all .cfg files to Tcl. I have seen this question which is

Sublime search “Find in Files” doesn't always work

梦想的初衷 提交于 2019-12-14 00:40:45
问题 The EXACT same thing if i do it in .html , xml files e.t.c it works as it should. That is it reutrns a filled find results tab. In this file it doesn't I have a simple .log text file When i search with ctrl+f everything is ok: when i use ctrl+shift+f i have 0 results. Why? 回答1: Scanning through the text of these log files, do you see any control characters? According to this answer to your question in the Sublime Text forum, when Sublime Text finds inline control characters, Find in Files

How to integrate PuTTY into Sublime Text 2

╄→гoц情女王★ 提交于 2019-12-13 21:05:01
问题 As I learn more about ST2 and use it more, I really like the power and comprehensive capability of running all of my IDE editing activities through the ST2 tool. I have read and know that it is possible to integrate and emulate a terminal session on a server directly in ST2. I have PuTTY installed locally on my WinXP machine. Does anyone have simple step-by-step setup snippet on how to get PuTTY configured in ST2 so you can telnet directly into a server through the ST2 interface? Thanks. 回答1:

New to Sublime Can't figure out snippets with javascript in them

白昼怎懂夜的黑 提交于 2019-12-13 18:45:13
问题 I have just started using sublimeText2 since eclipse is really slow with large projects through a VPN. I am trying to bring over some of my snippets. Most are working ok but the follow one is a ajax call that I use but won't work as a snippet. I am guess that there are characters that need to be escaped or something but I am not sure which ones <snippet> <content><![CDATA[ $.ajax({ type: 'get', url: '.cfc', data: {method:'' , var: var , var2:var }, dataType: 'json', async: false, success:

sublime text 2 macOSX double quote issue

被刻印的时光 ゝ 提交于 2019-12-13 17:31:14
问题 When I do shift key + single/double quote key on my mac using Sublime Text 2 I don't get parseable double quotes. Here's a picture demonstrating the effect on the id="" 's of some HTML: Does anyone know how to correct this? The correct double-quotes were generated by a different text editor. 回答1: I answered my own question. I had installed Sublime's Zencoding plugin which when I removed it, the double-quotes were normal again. Update: Oddly, this double-quote issue still exists in my PHP