sublimetext2

Python 2.7 and Sublime Text 2 Setup Guide

血红的双手。 提交于 2019-12-20 10:48:35
问题 I am new to Sublime Text 2. Basically I want to setup Sublime T2 as a Python IDE. I have come across various questions with regards to Python and Sublime T2, but I couldn't find a guide from a beginners perspective. This is what I have done so far: Installed Python. Installed Sublime T2. Installed Sublime Package Control What steps (e.g. package installations, etc.) should I follow to complete the Sublime Python IDE Setup? 回答1: Besides Package Control, I use the following packages for Python

Highlighting Github README.md format in Sublime Text 2

主宰稳场 提交于 2019-12-20 10:38:02
问题 I have got README file and I want Sublime to highlight only some pieces of code idented by some "tag", for example: Here is an example of usage # This should be highlighted ```ruby superhero = Superhero.new superhero.make_world_better ``` or with [code lang=ruby] or whatever 回答1: Lazy answer ( for independent fast learners ) Install package control for sublime-text. Once you restarted sublime-text, see "Fast Answer". Fast answer ( for intermediate to advanced sublime-text users ) Ctrl + Shift

How to change the color of the console in sublime text?

有些话、适合烂在心里 提交于 2019-12-20 10:35:04
问题 I have a dark theme (IR Black) in Sublime Text 2, but the console comes up white on black. Is there a way to change the console colors? 回答1: Found the answer here: http://www.sublimetext.com/forum/viewtopic.php?f=2&t=4583&p=20807#p20807 \Packages\Theme - Default\Widget.sublime-settings { // "color_scheme": "Packages/Theme - Default/Widgets.stTheme", "color_scheme": "Packages/Color Scheme - Default/Blackboard.tmTheme" } 回答2: I'm not familiar with your theme, but the beautiful Soda theme has a

Sublime Text 2: how to position cursor at begin/end of buffer?

此生再无相见时 提交于 2019-12-20 10:22:38
问题 I feel silly having to ask what seems like a basic question. I've Googled plenty, and I've examined the Default(OSX).sublime-keymap file, but I can't figure out: How can I make the cursor jump to the beginning/end of the current buffer in Sublime2 on OSX? Home/End scroll to the top/bottom respectively, but they do not position the cursor at the begin/end of the buffer. Surely there is a way to do this. Some apps (e.g. Intellij) use CMD+Home/End for this, but that doesn't work either. 回答1:

Sublime Text 2 is sluggish during work over sshfs

一曲冷凌霜 提交于 2019-12-20 10:01:26
问题 I am using Sublime Text 2.0.1, and unfortunately making it work with files distributed over sshfs is a pain - switch to other tab and go back makes Sublime checking if file has not been changed. Are there any Sublime preferences or maybe sshfs mount options which can make my work over remote resources possible? For now I am using following sshfs option (faster encryption): -o Ciphers=arcfour 回答1: This is really more of a problem with SSHFS and FUSE-based file systems than Sublime Text. If you

Sublime Text 2 is sluggish during work over sshfs

落花浮王杯 提交于 2019-12-20 10:01:01
问题 I am using Sublime Text 2.0.1, and unfortunately making it work with files distributed over sshfs is a pain - switch to other tab and go back makes Sublime checking if file has not been changed. Are there any Sublime preferences or maybe sshfs mount options which can make my work over remote resources possible? For now I am using following sshfs option (faster encryption): -o Ciphers=arcfour 回答1: This is really more of a problem with SSHFS and FUSE-based file systems than Sublime Text. If you

Creating custom build system for MATLAB through Sublime Text 2

爱⌒轻易说出口 提交于 2019-12-20 09:01:13
问题 I have been editing my .m files in Sublime Text 2 (henceforth referred to as Sublime for the remainder of my question) for quite some time now, and having recently become accustomed to using the build function in Sublime for running Python code, I was trying to setup something similar for MATLAB files. I am attempting to do this because I am tired of running my code and editing my code in separate windows. Following the documentation, I tried using this very reasonable seeming code below,

Sublime Text 2 Code Formatting

ⅰ亾dé卋堺 提交于 2019-12-20 08:26:34
问题 First let me say I come from a Microsoft background and Visual Studio is my bread and butter. It has a command (keybind is arbitrary) that auto-formats any code syntax. The same command works in HTML, CSS, Javascript, C#, etc. I have tried plugins for ST2 and so far I've found most don't work on a Windows box and if they do, it's for a very specific purpose like just Javascript. I have tried (and opened Issues where appropriate): https://github.com/victorporof/Sublime-HTMLPrettify https:/

Sublime Text 2 Paste with Colors to MS Word

百般思念 提交于 2019-12-20 08:04:01
问题 I would like to paste my code to a word document while preserving the highlighted, colored texts. Is there a way to do this? 回答1: You can install highlight plugin and then use SublimeHighlight: copy to clipboard as RTF command from the command palette. If you want to use your own color scheme use ExportHTML plugin to export to html and copy and paste the html in MS Word. HTMLExport can be configured to use any of your installed color schemes. just read the docs and look at the default

reindent shortcut in sublime text [duplicate]

╄→尐↘猪︶ㄣ 提交于 2019-12-20 07:59:25
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Indenting code in Sublime text 2? I'm trying to learn keyboard shortcuts in Sublime. What is the keyboard shortcut in Sublime Text 2 for reindent? According to some pages it should be TAB but that only indents, not reindents. 回答1: You can find it in Edit>>Line>>Reindent , but it does not have a shortcut by default. You can add a shortcut by going to the menu Preferences - Keybindings-User, then add there (the