sublimetext3

How do I run python from Sublime text 3?

北战南征 提交于 2019-12-20 06:06:03
问题 I just got python and sublime 3. When I press control + b, I get this in the console: 'python' is not recognized as an internal or external command, operable program or batch file. And it won't run my amazing code! print"Hi" I do have Python installed, and how do I change the PATH? 回答1: If you installed Python 2, you'll need to just go ahead and install Python 3, as it's the present and future of the language. Don't starting learning Python with 2, you'll pick up all sorts of bad habits.

Sublime will not print certain unicode chars on windows

て烟熏妆下的殇ゞ 提交于 2019-12-20 05:58:05
问题 Been having some issues lately on my work machine (windows), where printing certain Unicode characters displays nothing. No error, just the script finishes and there is empty space in the build section. As an example: print(u'New Year\u2019s Day') [Finished in 0.2s] Not sure why this is happening as the default encoding is utf-8 in sublime as far as i know, and \u2019 is very clearly a valid utf-8 character. As requested... sublime config: { "cmd": ["C:/Users/<username>/AppData/Local

Sublime Text 3, rbenv, TestUnit, RubyTest and Spring correct configuation to get tests working

醉酒当歌 提交于 2019-12-20 04:48:12
问题 So I've setup RubyTest / Sublime Text 3 and that works fine. I'm having trouble getting spring to work in RubyTest. There is this cryptic setting: "check_for_spring": false, But when I set to true and run a test it just gives me the default spring command output e.g: Version: 1.1.3 Usage: spring COMMAND [ARGS] Commands for spring itself: If I follow info on this url (https://github.com/rails/spring), correct way to call a test is? bin/rake test test/functional/posts_controller_test.rb Now my

Sublime Text How to add package to global repository

こ雲淡風輕ζ 提交于 2019-12-20 04:09:27
问题 I created a plugin for sublime and I called it "sublimecastling". The main idea is to replace 2 selected fields. So I'll be glad to know whether it's possible to add it to your Sublime repository in order users could install the plugin via package-control. The github link is provided below, https://github.com/unknownuser88/sublimecastling 回答1: If you want to make a plugin available via Package Control, visit the documentation page on the Package Control website and click on Submitting a

Sublimetext 3 resolution render issue (colorful tabs) on new update

拟墨画扇 提交于 2019-12-20 03:43:53
问题 After updating to the latest version of sublimetext (3.0, 3143), it rendered this output: Note: my theme is the default theme. Is there anyway to fix it? 回答1: The theme you are using is referencing old images that are no longer part of the Default theme. You should probably open the command palette and run "Select Theme" to use either Default or Adaptive. Alternatively you can use a third-party theme: https://packagecontrol.io/search/theme?sort=popularity. 回答2: Actually this problem in my

Change Sublime Text 3 Sidebar Width

纵饮孤独 提交于 2019-12-20 02:34:15
问题 I wanted to know if it is possible to change the sidebar width in ST3? Is this a project based, theme based, or something in settings? I did not see in default settings so that is why I brought the question here. Thank you. 回答1: To resize the sidebar, all you need to do is click and drag: There is no way to set a "default" size in your user preferences, project, or current theme, unfortunately. 来源: https://stackoverflow.com/questions/26933683/change-sublime-text-3-sidebar-width

Sublime Text modifying Linux mousemap to use 4th mouse button

谁都会走 提交于 2019-12-19 21:53:41
问题 Using Sublime Text 3 (Build 3059) on Linux. In Sublime Text column selection can be used to select a rectangular area of a file. When using the mouse to do this different mouse buttons are used on each platform. On both OS X and Windows the middle mouse button can be used to select the rectangle of text. On Linux you need to use the right mouse button + shift, I find that combination inconvenient so instead wanted to use the 4th button on my mouse to do it without the hassle of a modifier key

A python program fails to execute in sublime text 3, but success in bash [duplicate]

谁说我不能喝 提交于 2019-12-19 11:21:26
问题 This question already has answers here : Sublime Text 2 encoding error with python3 build (2 answers) Closed 4 years ago . #-*- encoding:utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) text = "我们的世界充满了未知数。" # Chinese print( type(text) ) # unicode print(text.encode('utf-8')) print(text) # an error occurs in sublime The version of python is 2.7.6. The OS is Linux mint 17. $LANG in bash is en_US.UTF-8 . In sublime text, Ctrl + B is used to run this

unable to send R code from a knitr document to SublimeREPL

若如初见. 提交于 2019-12-19 10:26:31
问题 I'm using Sublime 3, and I have a very simple question. SublimeREPL is working perfectly with R files, and Sublime compiles perfectly the knitr files (using LaTeXing) But if I want to send R code from a knitr file (.Rnw) I get the following error: Cannot find REPL for 'tex.latex.knitr.ing' (I'm using Ubuntu 14.04 by the way) Any ideas? 回答1: Ok, so someone solved it here: https://github.com/wuub/SublimeREPL/issues/165#issuecomment-57658359 Just in case someone has the same problem: this file

sublime text 3 html autocompletion not working correctly

那年仲夏 提交于 2019-12-19 10:19:22
问题 I am trying to use sublimetext3 for editing html. If I do ul tab, then it generates <ul></ul> if I do ul.temp tab, then it generates <ul class="temp"></ul> however, when I am trying ul>li.temp tab, it is generating ul><li class="temp"></li> What I am expecting to see is <ul><li class="temp"></li></ul> I have package control. What am I missing in getting this functionality? 回答1: Note: Moved to an answer at the request of the original poster. Perhaps the behavior you are looking for comes from