development

코드 랩 IntelliJ?

big-blog 2020. 7. 24. 07:16
반응형

코드 랩 IntelliJ?


숭고한 텍스트처럼 자동 줄 바꿈에 대한 바로 가기를 어떻게 할당 할 수 있습니까? 즉, 코드 줄이 너무 길면 자동으로 다음 줄로 넘어갑니다. wikipedia.org.org/Word_wrap

이 코드는 포장되어야합니다


내 생각 "소프트 랩은" 당신이 계신 수 있습니다. 읽기 전용입니다. 즉 파일의 문자를 변경하지 않고 화면에 표시되는 내용 만 래핑합니다.

설정 소프트 랩 Intellij> = 14.1.4 : 주석에서 looper가 지적한 것처럼 옵션은 파일> 설정> 편집기> 일반 - 가상 공간 또는 소프트 랩 하위 그룹 아래에 있습니다.

Intellij <14.1.4 : 파일> 설정> 편집기> 가상 공간을보십시오 . 기본적으로 단축키는 없지만 키맵에서 단축키를 지정할 수 있습니다.

안드로이드 스튜디오> = 1.4.1 : 옵션 아래에있는 파일> 설정> 편집기> 일반 - 세 이하 소프트 랩의 하위 그룹.

또한 Gutter (줄 번호가 표시되는 세로 막대)를 마우스 오른쪽 단추로 클릭하고 "소프트 랩 사용"을 선택하십시오. 거터 소프트 랩


[ctrl + alt + s] 또는 파일-> 설정을 사용하여 설정 대화 상자를 엽니 다.

코드 스타일을 검색하십시오. 프로젝트 설정에서.

코드 스타일에서 일반 확인

wrap when typing reaches margin

그것은 당신에게 코드를 줄 것이다.


Community Edition에서 다음을 수행하십시오.

파일 >> 설정 >> 편집기 >> 코드 스타일 >> Java

Go to Wrapping And Braces Tab.

Set the "Right margin (columns)" option with number of columns you would like as line wrapping point. Set "Wrap on typing" to YES.

Don't forget to apply the changes before you click Ok.


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

This is the easiest way, and i found it in comments. I think it should be an answer so everybody can see it easily.


(In Community Edition 2016+) go : IntelliJ IDEA>Preferences >Editor>General: select options "Use soft wraps in editor" and "Use original line's indent for wrapped parts"


OS X 10.8 IntelliJ Idea 15.0.5: IntelliJ IDEA Menu/Preferences/Editor/General/Soft Wraps

참고 URL : https://stackoverflow.com/questions/23004520/code-wrap-intellij

반응형