Vscode React Programming Configuration

Source: Internet
Author: User

1. Download Address : https://code.visualstudio.com/Download


2. Add RN Development Plugin React Native Tools: Microsoft official out of the reactnative plugin, very useful Reactjs code snippets:react, such as the Componentwillmount method, can be obtained directly from the Cwm Auto close tag: Auto close tag Auto Rename tag: Automatically rename tags, with the above plug-in use, basically to catch up with the idea of the function of the system path Intellisense: File path hint completion


3. Common shortcut keys & settings


Shift + Alt + F: Formatting code


Ctrl + Space: Code hints, conflicts with the input accelerator all can not be used, according to their own favorite settings, settings: File = = Preferences and keyboard shortcuts = search "Space" and modify it to their own shortcut keys, such as the figure:






4. Configure Vscode debug reactnative, get rid of manual input command run RN Project distress


 a). Install the "React Native Tools" plugin;


b). Click Debug + + Add config = + select "React native:debug Android" + Insert code error, as shown:








Save, click the Debug button, you can run the Debug RN project;

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.