sublimetext3

Python 2.7 build on Sublime Text 3 doesn't print the '\\uFFFD' character

只谈情不闲聊 提交于 2019-12-01 20:51:06
The problem. I'm using Python 2.7 build on Sublime Text 3 and have an issue with printing out. In some cases I get a pretty confusing output for '\uFFFD' - the 'REPLACEMENT CHARACTER' . For example: print u'\ufffd' # should be '�' - the 'REPLACEMENT CHARACTER' print u'\u0061' # should be 'a' ----------------------------------------------------- [Finished in 0.1s] After inversion of the order: print u'\u0061' print u'\ufffd' ----------------------------------------------------- a � [Finished in 0.1s] So, Sublime can printout the '�' character, but for some reason doesn't do it in the 1st case.

How to use a custom font in SublimeText

旧时模样 提交于 2019-12-01 18:21:33
I know a user can change the font_face in preferences with: "font_face": "gohufont-11", "font_size": 11, But, every-time I try to add a (already installed) non-system font, like Gohufont above, it does not work. Install the TTF version of the font despite the platform-specific fonts available from here . Install the font, installation is OS specific process (in your case use Install font menu entry from windows fonts folder). Copy paste "font_face": "GohuFont", to your user preferences file. Tested it on MacOS and it works with your font, did the same with other fonts on Win 7/8.1. Use the

Sublime Text 3: Reset font size to custom font size?

ⅰ亾dé卋堺 提交于 2019-12-01 18:14:52
Adding the following to my key bindings allows me to reset the font size in Sublime Text 3 to the default size: { "keys": ["ctrl+0"], "command": "reset_font_size" } But this also resets any font size I had set in my user preferences. For example, the default font size is 10. When I add the following to my user preferences... "font_size": 8 ...and then reset my font size with ctrl+0 , this setting disappears and the font size returns to the default of 10. How can I prevent this behavior? The commands increase_font_size , decrease_font_size and reset_font_size are defined in the Default package

Sublime Text 3: Reset font size to custom font size?

匆匆过客 提交于 2019-12-01 16:09:49
问题 Adding the following to my key bindings allows me to reset the font size in Sublime Text 3 to the default size: { "keys": ["ctrl+0"], "command": "reset_font_size" } But this also resets any font size I had set in my user preferences. For example, the default font size is 10. When I add the following to my user preferences... "font_size": 8 ...and then reset my font size with ctrl+0 , this setting disappears and the font size returns to the default of 10. How can I prevent this behavior? 回答1:

Can't open in new tab in Sublime Text 3. Is it a bug?

倾然丶 夕夏残阳落幕 提交于 2019-12-01 15:20:40
Today my Sublime 3083 became corrupted! I don't know why but every time I click on a file it opens on the same tab! I cannot open two tabs at the same time. Fist file opens in a new tab and another opens in the previous tab and so on! I did not installed any plugins recently. I just selected "Close Other Tabs" on menu. What can I do? Thanks You must open the file using double click. If you open it using single click then you're using a feature called file preview , and that file will be closed when you preview other file unless the file has changes. In addition, in the settings file you can

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

隐身守侯 提交于 2019-12-01 13:08:07
This question already has an answer here: Sublime Text 2 encoding error with python3 build 2 answers #-*- 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 toy program. The output is: Traceback (most recent call last): <type 'unicode'> 我们的世界充满了未知数。 File "~/test.py", line 9, in

Github Commit and Sync Deleted All Files - All work lost

若如初见. 提交于 2019-12-01 12:48:41
问题 I am using Sublime text and a Github plugin. When I tried to Commit and Sync it reverted all my files to the version in the online (from three days ago). The commit is not showing up in the history. Is there any way that I can get my files back? 回答1: The problem is that you might not have added your modification to the index before making: your "commit" (which committed nothing as a result) and your sync (which might have reset your index to the latest fetched commit) It is always preferable,

Regular Expressions, understanding lookbehind in combination with the or operator

牧云@^-^@ 提交于 2019-12-01 12:07:17
This is more a question of understanding than an actual problem. The situation explains as follows. I got some float numbers (e.g. an amount of money) between two quotation marks "". Examples: "1,23" "12,23" "123,23" Now I wanted to match the comma in those expressions. I built the following regex which works for me: (?<=\"[0-9]|[0-9]{2})(,)(?=[0-9]{2}\") The part which I don't completly understand is the lookbehind in combination with the or "|". But let's break it up: ( ?<= //Start of the lookbehind \" //Starting with an escaped quotation mark " [0-9] //Followed by a digit between 0 and 9

jshint and sublimelinter settings config on mac

随声附和 提交于 2019-12-01 11:28:27
I'm trying to configure sublimelinter, specifically jshint on my Mac. On my windows version of SublimeText there is the following section in SublimeLinter.sublime-settings "jshint_options": { // To fix column positions for JSHint errors you may want to add `"indent": 1` to your // **User** "jshint_options". This issue affects users with tabs for indentation. // This fix was reverted due to a conflict with using the `"white": true` option. // "indent": 1, "evil": true, "regexdash": true, "browser": true, "wsh": true, "trailing": true, "sub": true }, When I view the file on my Mac this section

How to change color of indent guide option in sublime text3?

时光总嘲笑我的痴心妄想 提交于 2019-12-01 11:27:14
问题 How to change indent guide color. 回答1: You need to edit the color scheme file for the color scheme you are using, and find <key>activeGuide</key> and/or <key>guide</key> and change the hex color value in the <string> node below it to the value of the color you desire. See How do I edit the Solarized (Light) theme in Sublime Text 3 for details on how to make custom changes to color schemes. 来源: https://stackoverflow.com/questions/33952462/how-to-change-color-of-indent-guide-option-in-sublime