Definition
Sublime Text is an application software / text editor for programming languages including PHP programming, Sublime Text supports many programming languages and markup languages and its functions can be added with plugins.
Sublime Text Features
- Color Scheme/Theme
Sublime Text by default uses a dark background color, while Notepad++ uses a light background. But of course we can change it easily. The image above is a screenshot of Sublime Text using light colors and Notepad++ using dark colors.
- Goto Anything
With Goto Anything, we can open files in the project quickly, just press Ctrl + P then type the file name. To search for file names, you do not have to type correctly, because Sublime Text uses a fuzzy algorithm for searching.
- Command Pallete
Sublime Text has a simpler appearance and very minimal menus, in fact there are no toolbars at all. Most of the commands we can access using Shortcuts, or if we don’t know the shortcuts we can access the Command Palette (press Ctrl + Shift + P) then search for the command we want (using fuzzy search). For example, I want to make the text uppercase, so I block the text first, then enter the Command Palette and type “case” or “upc” then a command for the uppercase will appear along with the Shortcut description.
- Package Plugin
Sublime Text also has a lot of packages. To install a package, we can run the Package Manager and then a list of packages will appear, we just need to search (of course using fuzzy search too) the desired package. The advantage of using a package manager is that the package will be automatically updated if there is a new version. Sublime Text also provides a plugin API for those of us who want to create their own packages using the python language.
- Multiple Selections/Multi Editing
This is one of the superior features in Sublime Text, where we can place the cursor in several places (using Ctrl + click), then edit simultaneously. In Notepad++ there is also this feature, but we must activate it first through Settings -> Preferences -> Editing -> Multi-Editing Settings.
The Multiple Selections feature in Sublime Text is better because it can speed up editing the same text. For example, if you want to edit a word, place the cursor on the word and then press Ctrl + D to select all the same words one by one, or press Alt + F3 to directly select all the words.
- Auto-Completion
Sublime Text has auto complete for several languages that I use such as PHP, CSS, Javascript. This feature also supports fuzzy search so you don’t have to type correctly.
Notepad++ also has auto complete, but it is not as convenient as Sublime Text and must be enabled first via Settings -> Preferences -> Backup/Auto-Completion.
- Goto definition
this is a new feature of Sublime Text 3 (not yet on ST2). This feature is very helpful in finding functions/classes in the project, by placing the cursor on the function/class name and then pressing F12, the file containing the function/class definition will open. To see a list of all functions/classes, you can use Goto Symbol in Project (press Ctrl + Shift + R).
The need for digital IT is needed in daily activities, Bead IT Consultant is the right choice as your partner, visit our website by clicking this link: www.beadgroup.com