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

What is the experience of using Sublime Text?

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article shows you what the experience of using Sublime Text is, it is concise and easy to understand, and it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

It was hard to persuade me to use a new editor, but after hearing so much praise from Sublime Text, I finally decided to give it a try. After all, it looks much better and the layout is easier than my old and stiff Vim,Sublime Text interface-I'm very picky about the interface. So, after reading a few articles on tuts+, I began to try it out in my work. Here are some of my experiences.

Let's start with the advantages of Sublime Text:

Sublime Text is cross-platform. If an editor can only run on one platform, I will never consider it, cross-platform is a necessary condition.

Sublime Text looks beautiful not only across platforms, but also on all platforms. It's smooth, responsive, and eye-catching.

A unique feature of Sublime Text is that it supports multi-cursor operation: it allows you to make changes to multiple places in the text at the same time, and you can see multiple places changing at the same time as you type. It is convenient to use when refactoring, such as changing the name of a variable.

Sublime Text's command palette allows you to do anything easily, eliminating the pain of remembering many keyboard shortcuts. All you have to do is open command palette, type in a few letters, and Sublime Text will use a fuzzy query to give you advice and options. It's almost the same as using keyboard shortcuts directly.

All the actions and options are intuitively placed on the menu. Although I don't use menus a lot (thanks to command palette), you can find the actions you want in it and learn what functions are available in this editor.

Opening a file is quick, and you can go anywhere in the file through the Go to anything pop-up panel. I always use ctrlp to do this when I use Vim, but Sublime Text supports moving to a location and a line, which is very convenient.

While editing the file, you can start the compilation and see the output. This interaction allows you to quickly find compilation errors. This is very well integrated, very smooth, and better than Vim.

In Sublime Text you can use the Vim command to move the cursor to and edit the text, and obviously, if you're used to Vim, you can quickly edit it in Sublime Text.

Of course, Sublime Text also provides a lot of very useful text manipulation commands, you can set shortcuts to bind these operations.

Sublime Text is extensible and uses a Python-style plug-in system. This is obviously a large and active community that can provide it with a wealth of plug-ins, which means you can find any plug-in you want online to integrate the features you want.

Unfortunately, Sublime Text also has a number of disadvantages:

Although Sublime Text is cross-platform, it does not seem to be designed for users on multiple platforms at the same time. For example, keyboard shortcuts vary from platform to platform, which is much more serious than changing from Cmd to Ctrl. This may be due to the fact that Sublime Text's design tends to localize the platform. It is undoubtedly annoying to remember different keyboard shortcuts on different platforms, and it is often wrong to switch platforms frequently.

Sublime Text configuration files exist in fixed-format, platform-specific files. It may also be because Sublime Text wants to integrate locally with the operating system. However, this makes it troublesome for you to store configuration files in the Git version library, which cannot be shared on different machines and different operating systems.

Sublime Text uses JSON format to store configuration parameters, which is justifiable, but there is a big drawback: each line you set requires a comma at the end of each line, except for a * line. A lot of people forget this when I change the configuration. Another disadvantage of using JSON is that this format is not very powerful: because it is basically a key/ value, you cannot add conditional dependencies (for example, different configurations on different machines) or reference other files.

Sublime Text does not have a command line interface. I often need to edit files on remote systems, usually with only one command line terminal. In this case, I can only use other editors.

Another obvious disadvantage of Sublime Text is that it is not open source and the price of the paid version is not cheap. I am not against any closed-source software, and if an editor I need to use it every day, I am willing to pay for it. However, there are some practical problems: the machine I work on can't run Sublime Text because Sublime Text references some old libraries that I don't have on my machine. I can't recompile it myself, so it's useless. And, one thing I need to say is that I don't like the fact that the life of an editor depends on someone's focus and contribution, in case he gets hit by a car. If his development is terminated, maybe someone will be able to clone one to support existing users, which is unknown.

I just tried Sublime Text 2 because the issues I'm talking about are fundamental and I don't think there will be any improvement in this area in future releases. I'm not used to these things. I made mistakes in using them again and again, and I finally decided to go back to Vim. However, I think Sublime Text is a very good editor, and I think it is the most likely alternative to Vim that has been found so far.

The above content is what the experience of using Sublime Text is, and have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

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

Development

Wechat

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

12
Report