Code Wrap IntelliJ? [英] Code Wrap IntelliJ?

查看:189
本文介绍了Code Wrap IntelliJ?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何像崇高文本那样分配自动换行的快捷方式呢?即如果代码行太长,它应该自动分解到下一行。 可能就是你的意思后。它是只读的,即不会更改文件中的字符,只会包含您在屏幕上看到的内容。




Intellij> = 14.1.4 :正如评论中的looper所指出的那样,选项位于虚拟下的文件>设置>编辑器>常规下空格 Soft Wraps 子组。



Intellij< 14.1.4 :在文件>设置>编辑器>虚拟空间下查找。
默认情况下它没有快捷方式,但您可以在键盘映射中指定一个。



AndroidStudio> = 1.4.1 :选项位于软包装子组下的文件>设置>编辑>常规下。



您也可以右键单击装订线(显示行号的垂直条)并选择使用软包装 - 感谢Bajal的评论。


How would be possible to assign a shortcut for word wrap like as sublime text do? i.e. if the code line is too long it should be automatically break to the next line. wikipedia.org.org/Word_wrap

解决方案

I think "soft wrap" might be what you're after. It's read-only, i.e. does not change the characters in the file, only wraps what you see on screen.

Intellij >= 14.1.4: As pointed out by looper in the comments, the options are under File > Settings > Editor > General - under the Virtual Space or Soft Wraps sub-group.

Intellij < 14.1.4: Look under File > Settings > Editor > Virtual Space. It doesn't have a shortcut by default, but you can assign one in the keymap.

AndroidStudio >= 1.4.1: the options are under File > Settings > Editor > General - under the Soft Wraps sub-group.

You can also right click the gutter (the vertical bar where line number is shown) and select "Use Soft wraps" - thanks to Bajal for comment.

这篇关于Code Wrap IntelliJ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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