React Native Development (02) using sublime 3 as the development IDE for React Native

Source: Internet
Author: User



Sublime Text is a code editor. It is also an advanced text editor for HTML and prose. Beautiful user interface and extraordinary features, such as: Mini map, multi-select Python plugin, code snippet and so on. Fully customizable key bindings, menus and toolbars, and more. Beautiful user interface and extraordinary features, Sublime text's main features include: Spell checker, bookmarks, full Python API, Goto feature, instant item switching, multiple selection, multi-window and more.



1. Download and install Sublime 3
Sublime 3 of:

http://www.sublimetext.com/3
Select the appropriate platform to download, and then install it. Here LZ selects SublineText3 under the Mac platform for installation

1) Double-click Sublime Text Build 3.dmg

2) Drag Subline Text.app to Applications.

2. Install Package Control

The default Sublime 3 does not have Package Control. You can only use this to install other plugins after installation.

Simple installation method Use Ctrl + `shortcut key or open the command line through the View-> Show Console menu, paste the following code:

import urllib.request, os, hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path (); urllib.request.install_open. (. urllib.request.ProxyHandler ())); by = urllib.request.urlopen ('http://packagecontrol.io/' + pf.replace ('', '% 20')). read (); dh = hashlib .sha256 (by) .hexdigest (); print ('Error validating download (got% s instead of% s), please try manual install'% (dh, h)) if dh! = h else open (os.path. join (ipp, pf), 'wb') .write (by)
or

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 ('', '% 20')) .read ())
Or the method provided by the official website:

https://packagecontrol.io/installation#st3
If it goes well, you can see Package Settings and Package Control under the Preferences menu.

3. Install the required plug-ins

Installing the sublime plugin is also a common problem with sublime. The steps are as follows:
1) Open Sublime Text3, click "Preferences"-> "Package Control" in the menu bar, or you can use the shortcut key CTRL + SHIFT + P to open
2) In the terminal window that opens, enter "install", the following will prompt "Package Control: install package", click with the mouse
3) Wait a few seconds at this time, a terminal will pop up, enter the plug-in you want to install in the terminal, search for it, click on the plug-in in the list below, and it will be automatically installed for you
Some recommended plugins for React Native development:

ReactJS: Support React development, code hinting, highlighting
Emmet: necessary for front-end development.
Terminal: Open the terminal in sublime and locate to the current directory, the shortcut keys under the artifact, mac are: command + shift + T
react-native-snippets: code snippets for react native
 

React Native development (02) Use Sublime 3 as React Native development IDE

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.