You can use these in ST too, but you will need to manually configure them in the LSP settings. There are also some LSP implementations that don't have a ST plugin yet, like Perl::LanguageServer. Like for example: LSP-typescript, LSP-css or if you are using Tailwind: LSP-tailwindcss. In my opinion, this plugin should be part of ST by default, as the settings can be hard to edit without it. It provides you with useful feedback and smart suggestions for all settings while editing the json files. Very useful if you are editing something like OpenAPI json files.īut above all: all ST configuration is fully json based, and LSP-json can really help with this. But don't forget that json can be schema based, which is supported by LSP-json. Json may not seem to be a format needing something like LSP. This will get you a licence key unlocking some very useful premium features. Intelephense has a fully functional free version, and there is a paid version for a one time fee of just 15 US dollar. It is the same implementation as in VS Code. There are other implementations as well, but this is the best. LSP is really The Bomb and an absolute Must Have for any developer. There are LSP implementations for almost every language. LSP provides intelligent code analysis, giving you context aware code suggestions, extensive code linting, "goto definition", "find references" and smart refactoring tools like project wide renaming of classes, functions and variables. Nowadays it is an open standard and supported by many editors/IDEs like VS Code obviously, but also Atom, all Jetbrains products as well as ST. Originally designed by Microsoft for VS Code. Let's start with the plugin that turns ST into a full fledged IDE: LSP, short for the Language Server Protocol. Here I will showcase some plugins that I deem essential, especially for PHP developers, in more or less random order. These are installable directly from within ST using the plugin with the same name, using the command palette. But ST will really shine with plugins.Īll plugins can be found in Package Control. It is an excellent editor though, and has support for syntax highlighting and other features like a symbol list and (limited) auto suggest functionality, setting it apart from other editors. Plugins ¶Ī default ST installation is quite basic. Also it is possible to run any editor command directly from the command line. With it, you can quickly open a file or entire folder. That's why I like it that there is a command line tool available as well, subl. This way you can perform edits in multiple places at once. For example you can select a piece of text that occurs multiple times in your file, and press ctrl-d to select the next occurences, with an additional cursor. This is also something that has been copied by others. Something else I wouldn't want to live without anymore: the multi cursor. Other editors have copied this functionality, but (as far as I know) ST was the first. You will be able to find any file in your project quickly. ![]() Same goes for the file palette, accessible via ctrl-p. Just type a part (or just some random letters) of the command name, and you will quickly find what you're looking for, All commands are quickly accessible using the neat command palette, by pressing ctrl-shift-p. ![]() ST is almost completely useable with only the keyboard. And if this interface still is too crowded for you, there's the Distraction Free Mode. I like that: no abundance of windows and panes, but just a bare bone editor, with no more than a side panel for folders and files, and a console for notices and diagnostics, which disappears with a press on ESC. ST has a very minimalistic interface, with no bells and whistles. But seriously, who wants to use a different IDE for every language? Minimalistic interface ¶ The creators of PhpStorm have different versions for other languages, like P圜harm for Python, or IntelliJ IDEA for Java. On top of that, ST is much faster and less resource hungry, and it is fully language agnostic. I really like the editor and thanks to many available plugins it can match PhpStorm in functionality. It dates back from the time I was still developing in Perl, and I sticked with it since then. I have been using Sublime Text (in short: ST) for a long time now. People almost think you're crazy when you use something else as a PHP developer. Within the PHP community PhpStorm is very popular, and not without reasons. ![]() The most known of these is the eternal and decennia lasting war between vim and emacs users. Most of them have fiery opinions on which one is the best. The Integrated Development Environment, or IDE in short, is one of the developer's most important tools.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |