¿Cómo puedo establecer la longitud máxima de línea en PyCharm?
Estoy usando PyCharm en Windows y quiero cambiar la configuración para limitar la longitud máxima de línea a caracteres 79
, en lugar del límite predeterminado de caracteres 120
.
¿Dónde puedo cambiar la cantidad máxima de caracteres por línea en PyCharm?
5 answers
Aquí está la captura de pantalla de mi Pycharm. La configuración requerida se encuentra en la siguiente ruta: File -> Settings -> Editor -> Code Style -> General: Right margin (columns)
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
2015-08-29 13:37:22
Para PyCharm 4
Archivo > > Configuración > > Editor > > Estilo de código: Margen derecho (columnas)
Sugerencia: Echa un vistazo a otras opciones en esa pestaña, son muy útiles
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
2015-01-20 21:51:06
Para Pycharm 2018.1 en Mac:
Preferencias (⌘+,), entonces Editor -> Code Style
:
Para seguir a PEP-8 establezca Hard wrap at
en 80.
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-08-16 06:20:00
Incluso puede establecer un margen derecho separado para HTML. Bajo la ruta especificada:
File > > Settings > > Editor > > Code Style > > HTML > > Other Tab > > Right margin (columns)
Esto es muy útil porque generalmente HTML y JS pueden ser generalmente largos en una línea que Python. :)
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
2016-05-09 03:56:52
Para PyCharm 2017
Podemos seguir a continuación: Archivo >> Configuración >> Editor >> Estilo De Código.
Luego proporcione valores para Hard Wrap
& Visual Guides
for wrapping
mientras escribe, marque la casilla de verificación.
NB: mira otras pestañas también, a saber. Python, HTML, JSON, etc.
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-01-23 07:07:26