If you are habitual of writing a formatted code donât worry itâs a good habit but when sometimes you get to debug files which are not formatted what so ever. In that case, itâs a headache to get things done in that sort of files.
In this kind of scenario, PhpStorm comes to rescue, Normal indentation of the file can be done only by the following commands.
Ctrl + A (to select complete file) Ctrl + Alt + I (this will indent the file properly.)
But sometimes we need more than just indentation. To completely format file got for
Ctrl + Shift + Alt + l
This will open a dialogue box, easy to understand. Select as you are pleased and go for it. This will format your file as you wished it was.
Moreover, sometimes a file is full of unused commented code which is there for no use. I tried for searching a plugin or something to remove all that commented code at ones but I guess there isnât any.
But found a good solution to this problem. You can use search and replace with regular expression with the following regex.
Multi line comment: /\*(\*)?(((?!\*/)[\s\S])+)?\*/ Single line comment: //.*$
And replace them with empty and we are good to go.
If you also got some more tricks down your sleeves feel free to comment.
I have been using the unsatisfactory formatters from a long time. All of them have one thing but lack other. Laravel Pint is one who has it all, combining it with vscode is like proving you laravel project a super power.
AppImages are the most easiest to run compared.The challenging task is to make the AppImage accessible globally through he system like an installed application (in the menu)
In the very initial days of my work in Node JS if faced this issue. Though Sequelize provide a great ORM for MySQL but the association within the models is a bit tricky.
The progressive web app is the new trend as well as the need for the present time. I hope before getting in the “HOW” part you know what is exactly a PWA
Although the authentication component of CakePHP 3 has made the life of a developer much easier but still there are some functionalities that are still needed to be done manually. One of them is login automatically if the users have checked for 'remember me'.
There are a number of options available for purpose of blog creation but if you are a developer non of them are as satisfying as laravel wink.
Making an application live majorly depends on the type of hosting you are having along with the method to access you are provided for that hosting.