Difference between revisions of "Sublime text 2"

From emboxit
Jump to: navigation, search
m (NikoSysop moved page Sublime to Sublime text 2)
 
m (1 revision)
 
(No difference)

Latest revision as of 16:51, 11 September 2015

General


Package Control Installation

The simplest method of installation is through the Sublime Text console. The console is accessed via the ctrl+` shortcut or the View > Show Console menu. Once open, paste the appropriate Python code for your version of Sublime Text into the console.

import urllib2,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation') 


Selected tab color

File:Sublime-cyan-tab-1.jpg

Preferences | Settings
a line should be changed to:
"highlight_modified_tabs": true,
Then indeed the tab text does go orange
  • My PATHs...
C:\Documents and Settings\n\Application Data\Sublime Text 2\Packages\Color Scheme - Default
WIN8.1: C:\Users\nikos\AppData\Roaming\Sublime Text 2\Packages\Theme - Default
WIN8.1: C:\Users\nikos\AppData\Roaming\Sublime Text 2\Packages\Theme - Sodat
WIN8.1: C:\Users\nikos\AppData\Roaming\Sublime Text 2\Packages\Theme - Railcast
To change Selected tab title color, edit :
Packages/Theme - Default/Default.sublime-theme (as said Romain)
Then search for the comment Tab Labels and change the fg attributes 
of the classes that contain selected from 255,  255, 255 
to your new color (255, 0,0 for red).
  • I changed line 609
    • from "fg": [255, 255, 255, 230]
    • to "fg": [0, 255, 255, 230],
RESULT: cyan letters in selected TAB

Change Font settings

Changing the font can be done via adding these lines to Preferences/Settings - User:
	"font_face": "Courier New",
	"font_size": 10
and then change as desired. The font will change when you save.
You can see other settings to change by browsing through Preferences/Settings - Default. 
    There are many things that can be customized in Sublime Text 2. 


Kelli Shaver

Install Soda from PackageControl
Preferences.sublime-settings (from PREFERENCES|SETTINGS|USER)
{
	"color_scheme": "Packages/Theme - Soda/Soda Dark/Widget - Soda Dark.stTheme",

	"draw_white_space": "all",
	"font_size": 11.0,
	"highlight_modified_tabs": true,
	"ignored_packages":
	[
		"Vintage"
	]
}
win8.1 Preferences.sublime-settings 5 May 2014:
{
	"color_scheme": "Packages/Theme - Soda/Soda Dark/Widget - Soda Dark.stTheme",
 	"draw_white_space": "all",
	"font_size": 11.0,
	"highlight_modified_tabs": true,
	"ignored_packages":
	[
		"Vintage"
	]
}
C:\Users\nikos\AppData\Roaming\Sublime Text 2\Packages\
Download Inconsolata.otf, then if in WIN7, right-click and choose install
then choose Preferences>settings>User and change like below
 
win8.1 / Preferences.sublime-settings 5May2014 final
{
	"color_scheme": "Packages/Theme - Railcast/Railscasts.tmTheme",
	"draw_white_space": "all",
	"font_face": "Inconsolata",
	"font_size": 14,
	"highlight_modified_tabs": true,
	"ignored_packages":
	[
		"Vintage" 
	],
	"word_wrap": false 
}


  • 4.This does not work any more, but does'nt needed Dirty File
  • 5.Block cursor
Just install from the package installer: SublimeBlockCursor
  • the complete Kelly Saver text
I've moved! You should go here
Sublime Text 2 for the Visually Impaired

I thought I’d take a moment and write about my Sublime Text 2 setup. I’ve customized it a bit to make it easier to 
see, so I just want to quickly run through the (no doubt highly subjective) steps below. Most of my changes involve 
improving contrast and readability.

Install the Soda theme and use Soda Dark - Sublime’s default look is great, but personally, 
I prefer Soda Dark. I find that light text on a dark background causes me less eye strain. Having the sidebar 
(which I always leave visible) match the editor’s main window eliminates the glaring contrast between the two, 
which can be quite distracting and uncomfortable to look at, especially in full-screen mode.

Install the Railscast color scheme - Like most developers, I can be pretty picky and stubborn 
about what theme I use for syntax highlighting. I’ve found that the Railscast color scheme is great. 
It offers a good mix of highly visible colors that contrast nicely with one another, and the background, 
without being too bright to cause glare. The one slight modification I have made is to eliminate pure white, opting instead for a very, very light grey.

Set your font to Iconsolota - This is a super clean font that looks just as good at larger pixel sizes 
as it does small ones, which isn’t something that can be said about a lot of programming fonts.

Enlarge the font to a comfortable size - Being able to see a decent chunk of a line of code is 
important and really short lines are annoying, but it’s possible to find a balance. 
I bumped the font size up to 16pt (you can either set this in your 
user preferences or just tap cmd + a few times, just like you’d zoom in your browser) 
and then run the app full-screen so I can still see longer lines of code. 
Even in split view (my default), line length is pretty good.

--->nx: This seems not possible...any more, not needed<---
Modify the dirty file indicator graphic - You can find it in Packages/Theme Soda/Soda Dark. 
The file you’re looking for is “tab-dirty.png.” 
There are other dirty file indicator graphics, but I find that this is the big one. I’ve modified mine like so:
No more squinting at the tab to see if it’s unsaved. :) You can use mine if you like.

Install a block cursor plug-in - Unfortunately, Sublime doesn’t come with an option to use a block cursor. 
This can make finding the rather thin caret somewhat difficult. 
There are a few block cursor plug-ins floating around the internet. 
Here’s one that I’ve modified to work outside of Vintage mode.

Learn your keyboard shortcuts - Every programmer should learn as many keyboard shortcuts 
as possible to save tiem and energy, but it becomes especially important when you have difficulty seeing. 
Keyboard shortcuts mean you don’t have to spend any time or energy finding and keeping up with a mouse cursor.

There you go. I hope this will be of help to someone out there. :)

Python


Command prompt

Verilog

  • package SystemVerilog for syntax highlight

Mediawiki