در دوره آموزشی Lynda Learn Sublime Text 3: The Basics با اصول و مقدمات کار با نرم افزار ساب لایم تکست ۳ آشنا می شوید. Sublime Text editor is used as an Integrated Development Editor (IDE) like Visual Studio code and NetBeans. The current version of Sublime Text editor is 3.0 and is compatible with various operating systems like Windows, Linux and MacOS. Why Sublime Text? When you use a suitable Text editor, you can enjoy its rich beneficial features. Sublime Text's vast flexibility is the reason why you will learn about so many configuration files: there simply must be a place to specify all available preferences and settings. Configuration files in Sublime Text are text files that conform to a predefined structure or format: JSON predominates. SO, YOU'RE LOOKING FOR A COURSE THAT WILL TEACH YOU SUBLIME TEXT 3 QUICKLY & IN A FUN MANNER? I've got just the course for you! LEARN SUBLIME TEXT 3 BY DOING! Here's what we'll cover in the course: 1. Download & Install. File Extensions.
- Sublime Text 3 For Mac
- Download Free Sublime Text
- Sublime Text 2
- Sublime 3 Text Editor
- Download Sublime Text 4
Sublime Text 3 (ST3) is the latest version of one of the most commonly used plain text editors by web developers, coders, and programmers. It's available for Mac, Windows, and Linux, and free to download and use.
Make the most of ST3 with the 25 tips and tricks in this ultimate guide for web developers. Learn not only how to use Sublime Text 3, but also about must-have packages, useful keyboard shortcuts, and more.
1. User Preference Settings
By default, ST3 uses hard-tabs that are 4 characters long. This can result in hard-to-read code, as large tabular indents push your work to the right. I recommend all developers add this to their user settings (Sublime Text 3 => Preferences => Settings – User
):
This setting converts hard-tabs to spaces, makes indents only two characters long, puts a ruler at the 80 character mark (to remind you to keep your code concise), and adds white space markers. Here is a complete list of preference options if you wish to continue customizing your ST3 environment.
2. Command Palette
ST3's command palette will let you run toolbar actions (e.g. setting the code syntax for an opened file) without having to lift a finger from the keyboard. Although the command palette can be opened with a mouse through Tool => Command Palette
, the best way to get the Command Palette prompt is to use the keyboard shortcut CTRL/⌘-SHIFT-P
.
Screenshot of the Command Palette in Sublime Text 3
3. Column and Row Workspace Panes
Are you more a productive coder with multiple files open? ST3, like any good text editor, allows you to see open files side by side, so that you won't be switching back and forth between an HTML file and its CSS document:
To view two column (vertical) panes side-by-side use the shortcut ALT-UP-2
(PC) or OPTION-⌘-2
(Mac). Replace the last stroke with '3' or '4' to view three or four panes respectively. Using '5' produces a 4 pane grid.
To view two row (horizontal) panes side-by-side use the shortcut SHIFT-ALT-UP-2
(PC) or SHIFT-OPTION-⌘-2
(Mac). Replace the last stroke with '3' to view three panes respectively.
A column split in half using ST3's Group feature
If you want to split a pane further, you can use ST3's 'Group' feature. Use CTRL-K, SHIFT-CTRL-UP
(PC) or ⌘-K, SHIFT-⌘-UP
(Mac) to create a new group inside a pane.
4. Package Control
ST3 comes with a lot of features out of the box, but you can extend its functionality further with 'packages'—plugins written by the greater ST3 community. The easiest way to install these packages is to use Package Control. To install Package Control on ST3, follow the installation instructions on Package Control's website.
8 bit voice changer. If Package Control installed successfully, then you should be able to search for Package Control actions in the Command Palette (CTRL/⌘-SHIFT-P
):
Accessing Package Control from the Command Palette
Must-Have Sublime Text 3 Packages
Note: Install these packages through Package Control by opening up the Command Pallette (CTRL/⌘-SHIFT-P), selecting 'Package Control: Install Package', and searching for the package by its name.
5. Sidebar Enhancements
Sidebar Enhancements extends the functionality of ST3's sidebar by allowing you to run actions on files and folders not normally available. You'll also be able to run these actions from the Command Palette with this package.
Extended functionality with Sidebar Enhancement
6. Emmet
Emmet makes coding HTML much easier by using shortcuts based on CSS selectors. What does that mean? See for yourself in the GIF below:
Emmet doesn't stop with HTML tags, classes, and IDs. Lorem ipsum text is something web developers use a lot. Often they'll head off to a lorem ipsum generator, but with Emmet, just type lorem
and hit tab. Want a certain number of filler words (such as 100 words of lorem ipsum)? Use lorem100
instead.
Emmet also extends to CSS. For example, CSS vendor prefixes are always a pain, so Emmet lets you use the shorthand -bdrs
to set a border radius:
7. Git
The Git package lets you run Git commands (e.g. 'Git Diff' or 'Git Blame') straight from ST3's Command Palette.
Not sure what Git is, or how to use it? Check out General Assembly's
Getting Started with Git and Github introductory video.
8. GitGutter
GitGutter shows uncommitted additions, changes, and deletions next to ST3's line numbers:
9. SASS
ST3 doesn't come with native SASS syntax and snippet support, but the ST3 package 'SASS' adds it in. Highly recommended for advanced front-end developers and Ruby on Rails programmers:
10. Better CoffeeScript
There also isn't syntax and snippet support for CoffeeScript in ST3, so this package fills in that gap:
11. OSX Command Line Users
If you use a Mac and the terminal, Sublime text editor also includes a command line tool subl
that will allow you to open the text editor directly from the terminal. Run the following command in your terminal to set up this shortcut:
If you use Homebrew or /usr/local/bin
is in your $PATH, the command to run is:
Keyboard Shortcuts
Learning ST3's keyboard shortcuts in and out will take you from a Sublime user to a Sublime expert. Here are some favorites:
12. Multiple Cursors
Multiple cursors are a killer feature of Sublime Text. It allows you to type in multiple places at the same time, saving you development time. To trigger multiple cursors, put your cursor on the word you want highlighted and hit CTRL/⌘-D
till you have selected all the words you want. You can also create multiple cursors with CTRL/⌘-MOUSECLICK
in all the places you want to have a cursor.
13. Goto Anything
Similar to the command palette, ST3 has the Goto Anything feature (pronounced 'go to') that can take you to a specific file, line, or method definition. Bring up Goto Anything's search bar with CTRL/⌘-P
. To switch between files, start typing the file's name. https://downbup683.weebly.com/destinator-7-pda-greek-maps-free.html. Since its a fuzzy search, the search query doesn't have to match the name exactly and you don't have to type the whole file path:
14. Goto Line in File Ro guild emblem free.
Goto Anything doesn't just take you to a file, it can also bring you to a specific line within a file. If you want to go to a line in a new file, just bring up Goto Anything and type a colon followed by the line number (e.g. :18
for line 18). To go to a line in another file, type the file name and then a colon and the line number:
15. Apple auto tune app. Goto Definition in File
If you want to go to a class, method, or function definition in a file, Goto Anything has a similar syntax as going to a line. Instead of colon, Goto Definition uses a @
. You'll get a list of all of the definitions in your chosen file and typing the name of one and hitting ENTER will take you to the given definition:
16. Distraction Free Mode
Sometimes being the most productive coder or front end developer means removing all distractions. No other applications, windows, tabs, sidebars, and menus. Sublime text editor offers an easy way to do this through its Distraction Free Mode. Trigger it using SHIFT-F11
(PC) or ⌘-CTRL-SHIFT-F
(Mac):
17. Hide/Show the Sidebar
The sidebar is useful for showing your files and directory structure, but sometimes you need a little more window space to code. Using the keyboard shortcut CTRL/⌘-K, CTRL/⌘-B
(in this order) will toggle the sidebar. Remember a sidebar will only be viewable if you have multiple files or a folder open.
18. Quickly Comment Your Code
This is a useful tip if you're constantly commenting your code or for temporarily testing how disabling a block of code affects your project. To comment code quickly in ST3, highlight the code and use CTRL/⌘-/
. If you don't highlight any code, using this shortcut will comment out the entire line.
Selecting Text
We've already seen how to select a word (CTRL/⌘-D
) but there are a handful of other useful selection options in ST3.
19. Selecting an Entire Line
To select the entire current line: CTRL/⌘-L
.
20. Selecting Code that is Similarly Indented
To select all code that shares immediate indentation: CTRL/⌘-SHIFT-J
.
21. Selecting Everything Inside an HTML Tag
To select everything inside the current HTML tag: CTRL/⌘-SHIFT-A
22. Indent Quickly
Developers know the importance of indentation because it keeps your code legible and easier to understand. If you want to increase the current line's indent, useCTRL/⌘-]
. Decreasing the indent uses the other square bracket key (CTRL/⌘-[
).
23. Pasting with Indentation
Sublime Text 3 For Mac
When you copy/cut indented code and want to have the indentation level maintained when pasting, use CTRL/⌘-Shift-V
to paste with indentation.
24. Switching Lines
Have you ever written code, only to realize that certain lines are out of order? ST3 has a time-saving shortcut that lets you move a given line up or down in a document. CTRL-SHIFT-UP
(PC) or CTRL-⌘-UP
(Mac) moves a line up, while CTRL-SHIFT-DOWN
(PC) or CTRL-⌘-DOWN
(Mac) moves a line down.
25. Deleting Lines
For the times when a line of code isn't out of order, but needs to simply be removed, ST3 has handy shortcut for deleting lines without having to select the entire line. CTRL-SHIFT-K
(PC and Mac) will delete the current line your cursor is on.
—
Now that you've mastered Sublime Text 3, you can focus on writing great code and becoming a better front end developer. Continue learning with online video classes taught by expert practitioners on topics in coding, business, and design.
Get started in web development with our Software Engineering Immersive course.
Sign up to get GA articles, upcoming events and more.
Sublime Text is a commonly-used text editorused to write Python code. Sublime Text's slick user interface along with itsnumerous extensions for syntax highlighting, source file finding and analyzingcode metrics make the editor more accessible to newprogrammers than some other applications like Vim andEmacs.
What makes Sublime Text awesome?
Sublime Text is often the first editor that newer programmers pick up becauseit works on all operating systems and it is far more approachable thanEmacs, Vim or even PyCharm.
It is easy to get started in Sublime because the menus and options areaccessible by using a mouse. There are no different modes to learn likeVim's normal and insert modes. The keyboard shortcuts can be learned overtime rather than all at once in the case of Vim or Emacs.
Download Free Sublime Text
Sublime Text works well for beginners as soon as they install it and thencan be extended with many of the features provided by an IDE likePyCharm as a developer's skill level ramps up.
An additional bonus of using Sublime Text as a Python developer is thatplugins are written in Python.Python developers can extend Sublime Text with their own programming languagerather than learn a new language like Emacs' Elisp or Vim's Vimscript.
Why use any other editor if Sublime is so great?
Picking a text editor or IDE to use tends tobe a weirdly personal decision for each developer. Yet it makes sense whenyou realize that you are going to spend hours upon hours every day in yourchosen environment so why not make sure it is one that is enjoyable andhighly productive?
For some folks they prefer Vim's keyboard-driven style,PyCharm's Swiss Army Knife set of Python tools or one ofthe many other editors with its own strengths and weaknesses.
Sublime Text 2
The only 'best' editor choice is to pick one that works really well for youand stick to it. Master your tool so it gets out of your way and enablesas much time inprogramming flow aspossible.
Python-specific Sublime Text resources
There are many Python-specific Sublime Text tutorials and resources becausethe editor is so frequently used to create Python applications. The followinglinks should get your editor customized with linters,code metrics, syntax checking and many otherintegrated development environment features. Ccc backup mac.
Setting Up Sublime Text 3 for Full Stack Python Developmentis a spectacular tutorial that covers installing Sublime Text andconfiguring a multitude of helpful Python programming plugins.
Sublime Text 3 Heavenis a quick overview of the extensions, packages and bonus toys thatone developer uses for his own Sublime Text development setup.
Sublime Tutor is an interactive in-editorkeyboard shortcuts tutorial that plugs into Sublime so you can learn andbecome more productive as you use the editor.
Using Generators for Fun and Profit - Utility for developersis not about setting up your Sublime Text environment but instead how tocreate your own plugins using Python. The tutorial is written by theauthor of a Sublime Text plugin who uses generatorsto implement features with Sublime's API.
Turning Sublime Text Into a Lightweight Python IDEshows the basic settings and configuration specific to using Sublime withPython as more than just a text editor.
Setting up Sublime Text 3 for Python Type Checkingshows one way of setting up support for Python 3.6 static type checking inSublime.
Three steps to lint Python 3.6 in Sublime Textwalks through setting up Flake8 toenforce code style guidelines and show you the errors and warnings inSublime as you are working.
Text editing techniques every front-end developer should knowgives examples in Sublime Text of time-saving text manipulation you maynot have known existed such as line bubbling, ragged line selection,AceJump and transpose. While the techniques can be used in most editorsthe provided video clips show how to perform each of these shortcuts inSublime.
General Sublime Text resources
Sublime 3 Text Editor
Sublime Text can be used for much more than Python development and there aremany useful tutorials that are not targeted at a specific programming languagewhich are still useful.
Super charge your Sublime Text 3 to increase your productivityprovides many shortcuts and tricks for using the editor.
Disassembling Sublime Text uses a binary disassembler to dive into the reverse engineeredsource code of Sublime Text because it is not open source software.
Sync your sublime text 3 configurations safely and easyexplains how to mitigate configuration conflicts that can arise when tryingto use copied files from one computer to another.
7 shortcuts of a highly effective Sublime Text usershows keyboard shortcuts for opening any file, going to any specificblock of text, handling multiple cursors and more.
Sublime Plugin resources
Sublime Text plugins are written in Python which makes it convenient forour ecosystem to customize the editor. The following resources provideinformation on writing your own plugins as well as great community pluginsyou will want to take a look at adding to your installation.
Sublime's documentation coversplugin basics, theAPI for plugins andgives a'Hello, world!'-level examplethat you can extend.
Sublime Text plugin development basicshas some good advice and further resources. Animal crossing new leaf all villagers birthdays.
The 25 Best Sublime Text Plugins for Front End Developersis not specific to Python development but there is a bunch of overlapbetween plugins useful for general front-end development and any Pythonweb development project.
5 Awesome Sublime Plugins you Won't Find in Top Plugin Postscovers some lesser-known plugins and how you can find your own viaPackage Control's trending plugins section.
What do you want to code using Sublime Text?
I want to learn how to code a Python web application using a framework.
Download Sublime Text 4
I've built a Python web app, now how do I deploy it?