Php Storm : 如何在 PHPStorm 2.1 中自动换行 [英] Php Storm : How can i automate breaking lines in PHPStorm 2.1
问题描述
如何在 PHPStorm 2.1 中自动换行(自动换行)?
How can i automate breaking lines (word wrap) in PHPStorm 2.1?
推荐答案
自动换行示例 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa :
Automatic wrap example aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa :
这个表达式有自动换行,因为我没有按回车.
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.
基于每个文件查看 |活跃编辑 |使用软包装
默认适用于所有文件设置/首选项 |编辑 |一般 |在编辑器中使用软包装
还有设置/首选项 |编辑 |代码风格 |一般 -->输入到右边距时换行
但那是不同的(它会产生实际的新行).
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屋!