Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The way to read android source using sublime 3

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how to use sublime 3 to read android source. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

Recently downloaded android source4.4.2, ready to learn, used to be in the linux environment, using vim, with ctag plug-in to jump to see, but on window, there are no good tools, and are not used to using si to see

A long time ago, learned that sublime is a good text editor, can customize any code style, smooth use, plug-in installation is also very convenient, today use it to build android source reader, easy to read, jump.

In order to make it easy for you to download, I have found the sublime address: http://www.sublimetext.com/

Download and install after entering

I use Sublime Text 3

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

Steps:

1. Press Ctrl+ `to bring up console (Note: there will be conflicts with this shortcut key installed with QQ Input, input method property setting-input method management-cancel hotkey to switch to QQ Pinyin)

two。 Paste the following code to the command line at the bottom and enter:

Importurllib.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('','% 20')) .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 is the image above:

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

Search ctags to install the ctags plug-in

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

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

Then configure the ctags environment in Sumlime Text 3:

Open the ctags default configuration as shown in the figure:

Copy the contents to

Then modify the line of command:

As shown in the figure:

Pay attention to the slash, yes /

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

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

As shown in the figure:

After you have created the tags, you can use the ctrl+shift+ left mouse button to jump through the code.

This is the end of this article on "how to read android source using sublime 3". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report