简体   繁体   中英

Change default naming conventions in PhpStorm 2016.3

I work on a project with some specific naming conventions which are different from the default ones in PhpStorm 2016.3. For example, when I need to create a method and start typing its parameters, autocomplete tries to help me in the following way:

function meh(MehObject $mehObject, AutoComplete $autoComplete) {}

I need something different to appear by default as I type, though:

function meh(MehObject $meh_object, AutoComplete $auto_complete) {}

If I succeed changing the convention in PhpStorm, I'll only need to press enter once after $ , and a valid name will appear. As for now, I need to type the full name with an underscore (or even a few underscores). That is unproductive.

How do I change the default naming conventions for the given example and other cases in PhpStorm 2016.3?

PhpStorm 2016.3.1 has such options -- WI-26738 .

Here is a screenshot of the Settings/Preferences (image taken from official comment ) -- notice the bottom part of the screen.

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM