jetbrains idea最新版设置代码editor自动换行

IDE 2019-12-31 阅读 1208 评论 0

最新版的jetbrains IDE,如phpstorm,webstorm,clion,IntelliJ IDEA,AppCode,GoLand,PyCharm,Rider,RubyMine等,代码区域的自动换行设置有所变动。

  • mac版本

Preferences -> Editor -> General

  • windows版本

File -> Setting -> Editor -> General

滚动到 Soft Wraps。勾选 Soft-wrap files ,在后面输入框中,填写需要自动换行的代码文件格式,使用英文字母 ; 隔开。

在phpstorm,填写 ;*.php ,分割php文件。

在webstorm,填写 ;.js ,分割js文件。 ;*.html 分割html文件。

在clion,填写 ;*.cpp ,分割c++文件。

在Intellij Idea,填写 ;*.java ,分割java文件。

*.md; *.txt; *.rst; *.adoc; *.cpp; *.html; *.js; *.java; *.php

最后更新 2020-01-23
MIP.watch('startSearch', function (newVal, oldVal) { if(newVal) { var keyword = MIP.getData('keyword'); console.log(keyword); // 替换当前历史记录,新增 MIP.viewer.open('/s/' + keyword, {replace: true}); setTimeout(function () { MIP.setData({startSearch: false}) }, 1000); } }); MIP.watch('goHome', function (newVal, oldVal) { MIP.viewer.open('/', {replace: false}); });