Cómo establecer el estilo de comentario de línea en phpstorm
¿Cómo cambiar el estilo predeterminado de comentario de línea en PhpStorm a nivel de sangría en lugar de en la primera columna?
if ($condition) {
// At first column.
// At indentation level
}
27
3 answers
Puede cambiar esto en "Options -> Code Style -> PHP -> Wrapping and Braces" y marcar "Comment at first colum".
16
Author: smh,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-06-30 07:50:56
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-06-30 07:50:56
Para el comentario de línea "Ctrl+/" está en "Configuración->Estilo de código->PHP->Otro->Commeting de código->Comentario de línea en la primera columna".
45
Author: pandasauce,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-07-09 19:19:53
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-07-09 19:19:53
Versión 2017.3 y superior
Mirando esta respuesta, noté que necesita un poco de actualización. A partir de la versión 2017.3, esto se ha actualizado a:
Preferencias > Editor > Estilo de código > PHP > (tab) Generación de código > Código de comentario > (desmarcar) Comentario de línea en la primera columna
16
Author: bagsmode,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-03-16 11:35:47
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-03-16 11:35:47