Php Storm:我如何在PHPStorm 2.1中自动断行 [英] Php Storm : How can i automate breaking lines in PHPStorm 2.1

查看:129
本文介绍了Php Storm:我如何在PHPStorm 2.1中自动断行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在PHPStorm 2.1中自动断行(自动换行)?

How can i automate breaking lines (word wrap) in PHPStorm 2.1?

推荐答案

自动换行示例 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:

Automatic wrap example aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa‌aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa :

此表达式已自动包装,因为我没有按下返回

This expression has automatic wrap, because I did not press return.

据我所知。你想要 Soft Wraps ,当长行在屏幕上包裹成多行时,但仍然保留为文件中的单行。

As I understand you want Soft Wraps, when long line is wrapped on screen into multiple lines, but still remains as single line in file.

基于每个文件

查看|活动编辑器|默认情况下,对所有文件使用Soft Wraps



设置/首选项|编辑|一般|在编辑器中使用软包装

还有
设置/首选项|编辑|代码风格|一般 - >打字时换行到达右边距

但这有所不同(它会生成实际的新行)。

But that's different (it will make actual new line).

更新:在当前版本中,IDE可以为每个不同的语言使用单独的右边距值 - 只要该语言在代码样式设置中有条目。

UPDATE: In current builds IDE can use separate value for right margin per different "language" -- as long as that language has an entry in Code Style settings.

还要记住 .editorconfig 文件中的任何设置(如果有的话)您的项目中的文件和EditorConfig插件已安装并启用)将覆盖代码样式设置中的相同内容 - 这是插件的本质而不是错误(它意味着以这种方式工作)。

Also keep in mind that any settings from .editorconfig files (if you have such files in your project and EditorConfig plugin is installed & enabled) will override the same from Code Style settings -- it's the nature of the plugin and not a bug (it meant to work this way).

使用EditorConfig支持,您可以配置某些设置,否则可能无法通过代码样式进行设置(例如,没有单独的代码样式条目的语言/文件类型的设置)。

Using EditorConfig support you can configure certain settings that otherwise may not be possible to do via Code Style (e.g. settings for languages/file types that have no separate Code Style entry).

这篇关于Php Storm:我如何在PHPStorm 2.1中自动断行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆