Sublime text3 notes, sublimetext3 notes

Source: Internet
Author: User

Sublime text3 notes, sublimetext3 notes

I plan to change the editor. dw was used before and it was a relatively large editor in Aptana. It was a little slow to open it. I have heard about sublime text3, which is small and lightweight and has rich plug-ins, so I decided to change it.

Official website (various cracked versions have been downloaded before ps, and there are always some problems, so it is more reliable from the official website)

Http://www.sublimetext.com/3

 

After the installation is complete, it is not managed by the plug-in (Package Control), you need to manually install this address contains detailed installation methods

First, choose view> show Console on the menu bar.

Enter the following in the bottom input box.

import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( 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)

After the installation is complete, the system prompts that the installation is successful.

 

During installation, I encountered the following problems:

 

Each time a new file is opened, the editor is closed, and the previous file cannot be saved.

This can be modified in the default settings.

Preferences in the menu bar

"Hot_exit": true,

"Remember_open_files": true,

Set all to true.

If the settings do not take effect (I have also met)

That's because I have a cracked version, and there is no way to solve it. I just downloaded it from the official website and it will be OK.

 

I recently started to use sublimetext3. I saw that I needed to crack the code and needed a registration code. Now I can see from the Internet that it does not need a registration code and is free of charge. Therefore, this step can be saved.

 

If you accidentally hide the menu bar, you can find it in the following ways:

1. Press the alt key to display the menu bar. If the menu bar is displayed in view-> show menu

2. ctrl + shift + p call ackage Control. If you enter toggle menu, you can also display the menu bar

 

Each time you open the editor, a dialog box is displayed asking if you want to talk to a new version.

To cancel the dialog box, follow these steps (or go to the link to view the text)

1. Open Preferences --> Setting-User

2. Add the property "update_check": false

 

The above are all problems encountered when installing Windows 7, and I also encountered some problems on ios.

This is because when downloading, sublimetext for mac is searched in baidu, and all downloaded files are modified by others.

There is no problem with the download from the official website.

 

 

Plug-ins

The downloaded sublime is very small, which may be more than 5 MB.

Therefore, the function is not very powerful, but it has powerful plug-in support. To install these plug-ins, follow these steps:

1. ctrl + shift + p (or Preferences --> Package Control)

2. Enter install and press Enter.

3. Press enter and the pop-up box will disappear. When the pop-up box appears again, enter the plug-in to be installed (for example, enter Emmet)

 

Now that you have added plug-ins, you may have deleted the plug-ins.

1. ctrl + shift + p (or Preferences --> Package Control)

2. Enter remove Package,

3. The installed plug-in is displayed. Select a press Enter.

 

Sometimes there are too many plug-ins. If you don't remember, you just want to see which plug-ins are installed. You can enter list Packages.

1. ctrl + shift + p (or Preferences --> Package Control)

2. Enter list Packages.

 

I have installed the following plug-ins

Emmet

This plug-in is very good. It uses the syntax similar to the CSS selector to quickly develop HTML

For example

Write div> ul> li * 3 and press the tab key to automatically generate html tags.

<div><ul><li></li><li></li><li></li></ul></div>

 

You can write a class attribute like this.

Div. test press tab

<div class="tab"></div>

 

Since there is a class, there will certainly be an attribute writing method.

Div [data-test = "xx"]

<div data-test="xx"></div>

 

Div # test

<div id="test"></div>

 

  

ConvertToUTF8

Sublime text is unfriendly to transcoding support. Except for utf8, garbled characters are displayed. Therefore, this plug-in must be important. After it is installed, it can support other formats.

 

BracketHighlighter

This plug-in is good. You can view tag matching, such as div. You can select the div at the beginning to mark the ending div,

Of course, tag matching is only a function. js functions, arrays, and json can all be matched.

 

SublimecodeIntel

The front-end development also hopes to have an ide for syntax detection. You can use this IDE,

I used it, but it's actually pretty weak.

For example, after the document is clicked, some methods such as getElementById and so on can be provided, but the method like querySelector can be used by the operator.

And now most of them use jq (or zepto) to write js. It seems useless to only support native ide.

 

Jquery

Jquery syntax is supported.

 

JsFormat

JavaScript code can be formatted. The shortcut key is ctrl + alt + f.

 

Svn

This is not yet installed. It is estimated that it will be installed later.

 

In short, I still like this editor.

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.