PhpStorm 中的自动换行 [英] Word wrapping in PhpStorm

查看:33
本文介绍了PhpStorm 中的自动换行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 PhpStorm 中启用 word 换行?

How can I enable word wrapping in PhpStorm?

我只需要为我的一些文件(扩展名为 .txt)启用它.可能吗?

I need to enable it only for some of my files (with extension .txt). Is it possible?

推荐答案

对于所有文件(打开文件的默认设置):Settings/PreferencesEditor常规在编辑器中使用软包装.您现在可以指定默认启用此选项的文件名/扩展名:

For all files (default setting for opened files): Settings/PreferencesEditorGeneralUse soft wraps in editor. You can now specify file names/extensions where this option will be enabled by default:

对于编辑器中当前打开的文件: menu → ViewActive EditorUse Soft Wraps(注意:我已经指定了自定义 Ctrl + Alt + R + 快捷键)

For the currently opened file in the editor: menu → ViewActive EditorUse Soft Wraps (Note: I've assigned custom Ctrl + Alt + R + shortcut for that)

在很长一段时间内(自 v2016 左右),您还可以通过编辑器装订线区域(编辑器左侧带有行号的区域)的上下文菜单访问此选项:

For quite a while (since v2016 or so) you can also access this option via the context menu for the editor gutter area (the area with line numbers on the left side of the editor):

(注意:我对这个菜单进行了相当多的自定义;默认情况下,这里的项目要少得多)

到处搜索(Shift 2x 次)或菜单HelpFind Action...(Ctrl + Shift + A(在 Windows 上使用默认键盘映射)也可用于快速更改此选项(而不是进入设置/偏好).

Search Everywhere (Shift 2x times) or menu HelpFind Action... (Ctrl + Shift + A on Windows using the Default keymap) can also be used to quickly change this option (instead of going into Settings/Preferences).

这篇关于PhpStorm 中的自动换行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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