- PhpStorm Cookbook
- Mukund Chaudhary Ankur Kumar
- 234字
- 2021-08-06 19:43:18
Using code completion
The best example of the need to use an IDE instead of a standard editor is that an IDE understands your code and thus provides hints about the code that you might be writing or need next.
Getting ready
A standard editor would, at the maximum, provide basic text coloring based on the various keywords. Anyway, without hurting the feelings of editors, PhpStorm provides you with additional options besides providing you the standard code completion system.
How to do it...
There is the smart type completion that not only completes your code, but also finds and suggests the most eligible match for your code. By eligible, it means that the code hint matches the current context (the invoking object). This is particularly useful in cases in which you have honestly stuck to the Software Engineering principle of Inheritance.
Code completion settings in PhpStorm are available at File | Settings | Editor | Code Completion, as shown in the following screenshot:

How it works...
If you have a lot of items for PhpStorm to look up, for example, members of your created class, you can order PhpStorm to provide you with hints in lexicographical order.
To turn this feature on, you need to select the checkbox adjacent to Sort lookup items lexicographically. The following screenshot shows the code completion feature:

Code completion at your convenience! I hope this make sense to you.
- INSTANT Mock Testing with PowerMock
- Java異步編程實戰
- Visual Basic 6.0程序設計計算機組裝與維修
- Oracle BAM 11gR1 Handbook
- C語言實驗指導及習題解析
- Hands-On Swift 5 Microservices Development
- Oracle 18c 必須掌握的新特性:管理與實戰
- Building Machine Learning Systems with Python(Second Edition)
- 深入理解C指針
- Spring MVC+MyBatis開發從入門到項目實踐(超值版)
- 軟件測試綜合技術
- Visual FoxPro 6.0程序設計
- Python青少年趣味編程
- Machine Learning for OpenCV
- 程序員必會的40種算法