↑↑↑↑↑ please look at the folder ↑↑↑↑↑
Download/install Windows/mac OS
Download the website, double-click the installation, this will come ~
Linux
Linux installation, one way is to download tar.bz from the official website, manually installed.
Here is an introduction to using Apt-get's own active installation method:
sudo add-apt-repository ppa:webupd8team/sublime-text-2 sudo apt-get updatesudo apt-get install Sublime-text-dev
When the order is over, everything is done!
See if the application list is a friendly chart? (although this icon is not cordial at all.) )
Change Siderbar color
Windows
Change theme file: /pristine packages/theme-default.sublime-package/default.sublime-theme
Background Color
{ "class": "Sidebar_tree", "row_padding": [8, 3], "indent": " indent_offset": +, "Indent_ Top_level ": false, " Layer0.tint ": [+, +, +], " layer0.opacity ": 1.0, " Dark_content ": false},
text
{ "class": "Sidebar_label", "color": [[], " font.bold": false //, "Shadow_color": [250 , "Shadow_offset": [0, 0]},
Cutting Line
{ "class": "Sidebar_container", "Layer0.tint": [Ten, Ten], "layer0.opacity": 1.0, "Layer0.draw_ Center ": false, " Layer0.inner_margin ": [0, 0, 1, 0], " content_margin ": [0, 0, 1, 0]},
In fact, RGB colors are clear and can be changed to their liking.
PS: When backing up the original thing must change the type name, because sublime will be loaded into all the packages.
Another: Thanks also Xiang Encyclopedia to give very big help
Linux
Note that the location of the sublime storage is able to:/usr/lib/sublime-text-2
assumes that the installation package is installed, usually/opt.
attached: Linux folder Resolution
MAC OS X
os some trouble, can not directly change, need to key tools to read and write files, I was in win under change and then cover over.
Installing Plugins
Like Vim, sublime itself is just an editor, to be converted into an IDE, you need to install a variety of plugins, of course, even if you do not need the plug-in its own powerful can bring you unexpected surprises!
Get the plug-in manager done first
As the name implies is used to manage the plug-in tools, first install it and then make other plugins convenient. Installation method: Select Menu View->show Console and you will be able to see the console form below. (Show box + input box) Here you can run Python code to enter the following code, you can install the plug-In Manager (package control) Plug
A sentence: A lot of place code for import Urllib2,os; This is python2.x code, in the python3.x has been replaced with import Urllib.request,os; If you are Sublime2.0 and the following version number, please change the code yourself.
Import urllib.request,os;pf= ' package control.sublime-package '; Ipp=sublime.installed_packages_path (); Os.makedirs ( IPP) if not os.path.exists (IPP) Else None;open (Os.path.join (IPP,PF), ' WB '). Write (Urllib.request.urlopen (' http:// sublime.wbond.net/' +pf.replace (', '%20 '). Read ())
Next you must remember to restart the software first! Hold Ctrl+shift+p
To be able to install the plugins you like.
Once you have installed the plugin manager, you will be able to find the plugin you need and install it.
Some sites will summarize some good plug-ins, you can go to try.
Of course, I would prefer you to read what I have written first.
High-Speed Encoding class
Emmet: Like Zen coding, but ST3 no longer support Zen, this is the same, but to pay attention to the first sublime itself to remove the active complement function, in Preferens, Setting-user joined
Code Formatting
Code formatting includes various languages, here are a few: (all plugins can be directly searched in the package control)
C/c++:sublimeastyleformathtml:tag
List:
Looks like a good summary.
Some of the indispensable ST plugins
20 Powerful plugins
Configuring the compilation Environment
Console input (for example in C + +)
The principle is very easy to create a bat that runs the file externally and then call it. Note that the need to use start to open a new form, the same time to pause to see the results, the very egg is the sublime default run your start, assuming that your pause and start placed in a file pause on start%1 File is invalid, so it is actually necessary to create two documents. Note Environment variables ... (about what is the environment variable, 32 sentence explanation is not clear, best oneself Baidu a bit.) )
After the personal feeling console input meaning is not very large, do the words are read from the document, do not need to read the development of Basic. So~, you are cautious.
Mycrun.bat
@echo Off%1echo.echo-------------------Pauseexit
Mycallrun.bat
@start mycrun%1
The configuration file is in Sublime Text 3\packages\c++.sublime-package. Back up a bit first.
Change the inside of the C++.sublime-build for
{"Shell_cmd": "g++ \" ${file}\ "-o \" ${file_path}/${file_base_name}\ "", "File_regex": "^ (.. [^:]*]:([0-9]+):? ([0-9]+)?:? (. *) $ "," Working_dir ":" ${file_path} "," selector ":" Source.c, source.c++ "," variants ": [{" Name ":" Run "," Shell_cmd ":" g+ + \ "${file}\"-o \ "${file_path}/${file_base_name}\" && mycallrun \ "${file_path}/${file_base_name}.exe\" " // The fact is that there is a mycallrun}]}
C + +
Sublime Text 3 is configured by default for C + +. But you need to add the GCC folder into the environment variable
.
Java
Sublime Text 3 By default only executes the Javac, you need to join the execution.
@ECHO OFF CD%~DP1 ECHO compiling%~nx1 ... If EXIST%~n1.class (DEL%~n1.class) javac%~nx1 IF EXIST%~n1.class (ECHO Running ...
ECHO----------------------OUTPUT----------------------java%~n1)
Note that you cannot use the CLS.
Modify the Java compilation options (back up the original). Folder: Packages/java.sublime-package/javac.sublime-build
{" shell_cmd ":" Myjrun.bat \ "$file \" "," File_regex ":" ^ (... *):( [0-9]*):? ([0-9]*) "," selector ":" Source.java "}
the Java code point Build that was written later will be executed on its own initiative. Such an approach can not cross the platform, and then study sublime own way.
Go
Using Sublime to develop Golang environment is very easy, just need to install a gosublime is almost the same.
Ubuntu input Chinese reference to organize here
Need to compile a file yourself to load the execution. So we need to use some compilation environment
Step 1: Install the GTK environment
sudo apt-get install Libgtk2.0-dev pkg-config
Also seemingly do not support IBUs, I use the Fcitx+sogou
Step 2: Save the following file to Sublime_imfix.c
/*sublime-imfix.cuse ld_preload to interpose some function to fix sublime Input method support for Linux. by Cjacker Huang <jianzhong.huang at I-soft.com.cn>gcc-shared-o libsublime-imfix.so sublime_imfix.c ' Pkg-config- -libs--cflags gtk+-2.0 '-fpicld_preload=./libsublime-imfix.so sublime_text*/#include <gtk/gtk.h> #include < Gdk/gdkx.h>typedef gdksegment gdkregionbox;struct _gdkregion{long size; Long numrects; Gdkregionbox *rects; Gdkregionbox extents;}; Gtkimcontext *local_context;voidgdk_region_get_clipbox (const gdkregion *region, Gdkrectangle *rectangle) { G_return_if_fail (Region! = NULL); G_return_if_fail (Rectangle! = NULL); Rectangle->x = region->extents.x1; Rectangle->y = region->extents.y1; Rectangle->width = region->extents.x2-region->extents.x1; Rectangle->height = region->extents.y2-region->extents.y1; Gdkrectangle rect; Rect.x = rectangle->x; Rect.y = rectangle->y; rect.width = 0; Rect.Height = rectangle->height; The caret width is 2; Maybe sometimes we'll make a mistake, but for most of the time, it should is the caret. if (rectangle->width = = 2 && gtk_is_im_context (Local_context)) {gtk_im_context_set_cursor_location (local _context, rectangle); }}//this is needed, for example, if your input something in file dialog and return back the edit Area//context would lost, s o Here we set it again.static gdkfilterreturn event_filter (gdkxevent *xevent, gdkevent *event, Gpointer im_context) {X Event *xev = (XEvent *) XEvent; if (Xev->type = = Keyrelease && gtk_is_im_context (im_context)) {Gdkwindow * win = G_object_get_data (G_OBJE CT (Im_context), "window"); if (Gdk_is_window (Win)) Gtk_im_context_set_client_window (Im_context, Win); } return gdk_filter_continue;} void Gtk_im_context_set_client_window (Gtkimcontext *context, Gdkwindow *window) {Gtkimcontextclass *klass; G_return_if_fail (Gtk_is_im_coNTEXT (context)); Klass = Gtk_im_context_get_class (context); if (Klass->set_client_window) Klass->set_client_window (context, window); if (! Gdk_is_window (WINDOW)) return; G_object_set_data (G_object (context), "window", window); int width = gdk_window_get_width (window); int height = gdk_window_get_height (window); if (width! = 0 && height!=0) {gtk_im_context_focus_in (context); Local_context = context; } gdk_window_add_filter (window, event_filter, context); }
Step 3: Compile the
Gcc-shared-o libsublime-imfix.so sublime_imfix.c ' pkg-config--libs--cflags gtk+-2.0 '-fPIC
Step 4: Perform
In fact, it can be done here. Give it a try
Ld_preload=./libsublime-imfix.so Sublime_text
It's going to be a success, but not every time you lose the command, that's what I'm dealing with.
-Put sublime_imfix.so in Sublime installation folder (my in/opt/sublime_text/)
-Create a new file under/usr/local/bin or other path Subl write:
Ld_preload=/opt/sublime_text/libsublime-imfix.so/opt/sublime_text/sublime_text
-Create a new Launcher command for/USR/LOCAL/BIN/SUBL (uppercase is only used to differ from the General command)
It's done
!
About the thing that cracked it.
Online about sublime crack method, a search a lot of. But I have not yet to crack, the reason is very easy, assuming an indefinite trial of software you have the heart to crack the words. Everyone is the same as the developers, assuming that they are going to crack the unscrupulous, but also expect who to pay for the software? (I'm a friend of mechanical learning, said)
Not to be continued.
Sublime Text 3 The sexiest editor in history