![]() ![]() That’s it for this tutorial, in the next one, I’ll be showing you a couple of packages to extend Sublime Text’s autocomplete functionality. You can also use this package to convert Single Quotes to Double Quotes or vice versa. For example, snake_case, dash-case, PascalCase, camelCase, dot.case etc. This package enables you to convert your selected text into a number of different cases. We’ve seen basic case conversion in Sublime Text which is Title Case, Lower Case and Upper Case. If you have type hinted your function arguments, it’ll even define the right annotations in that comment block. This will create a PHPDocumentor compatible code block. Then just type /** above the function declaration line and press Enter. You can define your function normally like you do and even complete it. ![]() This is the package for you as PHPDocumentor has a peculiar syntax in how to write code comments. If you write comment blocks to describe your PHP methods that can be read by PHPDocumentor. So can someone please suggest which extension I should use as a PHP beautifier If the extension also checks for PHP errors, then that is good for me. I've found the extensions HTML Beautifier, JS and JSON beautifier. This package will display the opening and closing brackets when you are in a code block. I have been working in Sublime Text for the last three months. This handy little package helps me put the semi-colon at the end of the line as it’s supposed to if I make a mistake. While I was writing code, I made a lot of mistakes of putting the semi-colon ( ) in the wrong place. You can also modify the Package’s settings by selecting Alignment -> File Settings – User. If you are a Windows user you can use the option Alignment -> Key Bindings – Default to see the shortcut. Just install the package, select the text which you want to align and press Ctrl+Command+A on the Mac. If you are like me and you like to align your (=) symbol in your variable declarations or while making an associative array then this package is for you. Just use it via the Command Palette option. JSON ReindentĪs the name suggests, this package will format JSON which is unformatted. With this package’s help you can even format a minified JS file just as an example even though formatting a minified JS file defeats the minification purpose. Just like HTML Beautify package, this package gives you the ability to format JavaScript files. You’ll immediately see that the package will re-format your entire HTML file or selected text to the proper formatting and indentation. Just open up a messed up HTML file and select HTML Beautify from the Command Palette. You can install this package from Package Control. The first package that you should have is HTML Beautify. So let’s open up Sublime Text and start installing the packages that’ll help us format our code with very little effort. If you are anything like me, you also love the code that is clean and formatted properly. For more information got to ReactJS.In this video tutorial, I’ll be showing a couple of packages that will help you format your code easily. React is different from most JavaScript libraries because of its emphasis on one-way. It was pioneered by Jordan Walke & Tom Occhino and it was initially open sourced in 2013. React was developed by Facebook in 2011, while they were building Facebook’s news feed. In this article, we will see how React can render HTML on the client-side and how to use JSX syntax to write these declarative UI components. The way it works is that you write your code right in the place where you want to render it, which means as soon as you save your file, it will automatically update every time there is a change. The react format is a new way to render markup and components without using the long-standing HTML or the more short yet shallow JavaScript templates. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |