Sublime text 3 tips and tricks

     

Sublime Text Editor has been around since 2008 & has remained one of the most intuitive, free, & feature-packed code editors on the market. It is great for new & seasoned developers alike, with features like multi-tab select, git integration, key bindings, tệp tin patterns, và a native command-line interface khổng lồ make your workflow more efficient.On đứng đầu of this, visual customizability allows the developer to create, import, & edit Sublime’s interface themes and màu sắc schemes.

Bạn đang xem: Sublime text 3 tips and tricks

By default, you can use it for any programming language — but its Python support is considered one of the best. Why? Because it’s written in C++ and Python. You might even say that Sublime Text is the best code editor khổng lồ understand Python because it is part Python.

But why, exactly, should you use Sublime Text for Python development?

Why use Sublime Text for Python development?

It only takes three words to lớn sum up the awesomeness of Sublime Text for Python & they are speed, interface, & customization.

Speed

Sublime Text is super fast. Unlike other IDEs that may take a bit of time to boot up và maybe bombard you with a few welcome messages và multi-tabs of text about the editor each time you boot it up, Sublime Text just opens.

Not only that, it opens và leaves exactly where you left off — including unsaved changes and code that may have been lost with any other editor. In a way, it’s like you never left. So there’s no worry about low máy tính xách tay battery or panic when Windows randomly forces you lớn restart mid-way through your work. You can close Sublime Text safely & know that everything will return khổng lồ you intact & without any glitches.

Interface

Sublime Text’s interface is one of the cleanest interfaces for a code editor. With many IDEs, you’re bombarded with options galore, with side and bottom panels that often take up screen real-estate. Sublime Text’s beauty lies in its minimalist approach, showing only what is necessary, which gives you the space to lớn focus on your code.

Opening up a new project won’t close your current project either. Instead, it opens up a completely new window for you lớn arrange as you wish on your screen. The separation can come in handy when you’re referencing multiple codebases.

Some IDEs & code editors only allow for one project at a time. Sublime Text preserves your xuất hiện projects and keeps them separated from each other. You don’t need khổng lồ worry about accidentally editing the wrong files when you’ve got more than a dozen files open.

Customization

Sublime Text comes with a vi xử lý core set of rich features such as key bindings, indentation preferences, spell checks, multi-select, và file patterns. The highlight for Sublime Text is the ability to lớn extend the current functionality with a thing called Packages.

Packages can be anything. This includes plugins, syntax highlighting customization, menus, và code snippets. In a way, packages can be seen as extensions that are pluggable into Sublime to perform whatever task you want.

How to lớn set up Sublime Text for Python development

Step 1: tải về Sublime Text and have Python phối up on your computer

You can tải về Sublime Text at sublimetext.com. Once completed, run the .exe file to complete the installation process.

You also need to lớn have Python phối up on your computer. If you haven’t already done this, you can tải về Python from python.org. Select the version of your OS system and follow the installation instructions. If you’re on Windows, just run the .exe file and follow the wizard.

Xem thêm: Sửa Nokia 1280 Mất Đèn Màn Hình, Xin Giúp 1280 Mất Toàn Độ Đèn

Step 2: Configuring Sublime Text for Python

Sublime Text comes pretty complete và ready for you to lớn code out of the box. However, if you want khổng lồ leverage Sublime Text for Python, you should install và configure the integrated terminal.

Without further ado, let’s get khổng lồ installing và configuring the Integrated Terminal.

Go khổng lồ ‘Command Palette’ located under ‘Tools’.

*
*
*
*
*
*
*
*
*
*
*

3. Requirementstxt

requirementstxt is a handy plugin that provides syntax highlighting, và easy version management for your requirements.txt files.

4. Anaconda

If you’ve played with requirementstxt & it’s not lớn your fancy, Anaconda is another good alternative. Anaconda turns your Sublime Text editor into a Python-ready IDE by including autocompletion, code linting, autopep8 formatting, McCabe complexity checker Vagrant & Docker support.

5. AutoPEP8

AutoPEP8 is a package that will automatically format your Python code to PEP 8 style guide for you. This means with your chosen key binding, you can quickly lint spaces lớn the correct standard.

6. SublimeLinter

Linting is an automated checking tool that checks for style và potential errors in your code. SublimeLinter is a staple linting tool in Sublime Text that is highly supported and frequently updated to ensure that the latest standards are met.

Wrapping it up

Overall, Sublime Text is one of the fastest & responsive không tính phí code editors available. When it comes to lớn Python, you don’t need a large suite of packages to get started. Terminus is a handy package khổng lồ have lớn give that IDE feel without the lag.

Coding Python in Sublime Text is a no-frills experience. The minimalistic interface makes it a distraction-free area. In addition to lớn this, the large ecosystem of packages ensures that your every development need is met. All you have to vì is install it via the ‘Command Palette’.