Home > Development Tools > sublime > Teach you to use sublime 3 to read android source

Teach you to use sublime 3 to read android source

藏色散人
Release: 2020-07-07 11:58:28
forward
3893 people have browsed it

The following tutorial column from sublime will introduce to you how to use sublime 3 to read android source. I hope it will be helpful to friends in need!

Teach you to use sublime 3 to read android source

Recently the android I downloaded source4.4.2 and planned to learn it. I used to use vim in the Linux environment, with the ctag plug-in for jump viewing, but on windows, there are no good tools, and I am not used to using si to view,

A long time ago, I learned that sublime is a very good text editor. You can customize any code style. It is smooth to use and the plug-in installation is also very convenient. Convenient, use it to build android today Source reader, convenient for reading and jumping.

In order to facilitate your download, I have found the sublime address here: http://www.sublimetext.com/

After entering, download and install,

I use Sublime Text 3,

We use the package control component here, which can directly install various plug-ins online, which is very convenient

Steps:

1. Press Ctrl ` to bring up the console (Note: This shortcut key will conflict if the QQ input method is installed. Input method property settings-input method management-cancel the hotkey to switch to QQ Pinyin)

2. Paste the following code into the bottom command line and press Enter:

import## urllib.request,os; pf ='Package Control.sublime-package'; ipp =sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' pf.replace(' ',' ' )).read())

3. Restart Sublime Text 3.

4. If you see the package control item in Perferences->package settings, the installation is successful.

By the way, post the code of Sublime Text2

importurllib2,os; pf='Package Control.sublime-package'; ipp =sublime.installed_packages_path ()

Attached to the picture above:

# #After successful installation, use ctrl shift p to open the plug-in search box:


#Search for ctags and install the ctags plug-in,

Then download the ctags executable file: Give the address: http://ctags.sourceforge.net/


After downloading, put it in the specified directory. I put it in the c:\ctags58 directory,


Then configure the ctags environment in Sumlime Text 3:

Open ctags default configuration as shown:



#Copy the contents to


##Then modify the command line:


as the picture shows:


Note the slash, it is /

##At this point ctags has been configured . Start generating the tags environment for ctags

In the directory, right-click the pop-up menu:

As shown in the picture:


##After creating tags, you can use ctrl shift left mouse button to jump to the code.


The above is the detailed content of Teach you to use sublime 3 to read android source. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template