Sublime Quick Start jump to associated files, sublime jump

Source: Internet
Author: User

Sublime Quick Start jump to associated files, sublime jump
The next web Front-end is recently written to the front-end using the sublime text2 editor. Due to the large number of pages and large projects, many reference files and some js teample templates are inevitable.


Problem: When writing code in Sublime Text, you need to press ctrl + p to find the link to the associated file. If there are multiple projects ., all matching files will be searched in these projects, which is not very refreshing.


I did not find a good plug-in for a long time on the Internet, so I wrote a plug-in for use. I felt quite comfortable. I uploaded it to github and recommended it.


Web: https://github.com/xuyanquan/SearchFile


Installation:

Download the compressed file or clone git .. Put all the files in the SearchFile folder. In the packagesfolder folder, click Preferences> Browse Pakacge on the menu bar.


After restarting sublime, you can find SerachFile setting parameters and shortcuts in Preferences --> Pakacge Settings. The default shortcut is alt + m.

Configure the root parameter in SearchFile. sublime-setttings to your website root directory. The slash is replaced by \, and then can be used.


Usage:

Click or select the path of the require file in the css file or js file, and press alt + m to find it.

You can choose to enable multiple locations at the same time.

For example, you can choose to open all the files added with a single point of failure (spof) at the same time.



@import url("profile/user-card.css");@import url("profile/list_charts.css");@import url("learn/public-class-open.css");@import url("learn/today-task.css");


Or select the following area.

profile/user-card.cssprofile/list_charts.csslearn/public-class-open.csslearn/today-task.css

Can be opened quickly


You can also open files relative to the project root directory.


For example, adding a slash indicates the path relative to the root directory in the configuration file.

/profile/user-card.css

This plug-in is not easy to use. Thank you ~~~~





^. ^

------------------------------------------------------------------------------------- Henry Like You



Welcome to my js group:

Group 2: 142601532
3: 77493278
4 groups: 70726513
Group 5: 288256203



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.