简体   繁体   English

更改PhpStorm 2016.3中的默认命名约定

[英]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. 我正在开发一个具有一些特定命名约定的项目,这些约定与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. 如果我成功更改了PhpStorm中的约定,我只需要在$后按Enter键,就会出现一个有效名称。 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中更改给定示例和其他情况的默认命名约定?

PhpStorm 2016.3.1 has such options -- WI-26738 . PhpStorm 2016.3.1有这样的选择 - WI-26738

Here is a screenshot of the Settings/Preferences (image taken from official comment ) -- notice the bottom part of the screen. 以下是设置/偏好设置的截图(图片来自官方评论 ) - 请注意屏幕的底部。

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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