이클립스 v3.0.1 에서 자동 인덴드 기능...

hurryon의 이미지

자동 인덴드 기능 중에...웹에서 오려다 붙이거나 다른 사람의 소스를 가져다가 작업하는 경우 vim 이라면 "컨트롤+v" 정도로 영역을 지정한 후 "=" 을 이용하여 자동 인덴트 기능을 사용하여 코드를 정리했었습니다.

이러한 기능을 이클립스에서 사용이 가능한지요?

mr.lee의 이미지

음... 이클립스에서 안되는게 뭐 있겠습니까.

하다못해, 없으면 플러긴을 만들어버림 되겠지요.

vim 플러긴도 있고..뭐 헤아리 수 없이 많지요. 이클립스 플러긴 제작을 비젼으로 하는 개발업체들도 많으니깐요. 음 그러고보니 아이러니하군요. 정작 메인 프레임웍은 무료인데, 괜찮은 플러긴들은 상용이다라...

대략 찾아보니 여러가지것들이 보이는데요. (플러긴은 안찾아봤습니다만, auto indent, smart indent등의 플러긴도 분명 여러개 있을듯 합니다)

-----------------------------------

1. 수작업 줄 맞추기

블럭잡고 tab 은 오른쪽으로 밀고, shift-tab은 왼쪽으로 밉니다.

2. 이클립스는 기본적으로 붙일때 indentation 을 해줍니다.

Windows-Java-Editor-Typing-Pasting for correct indentation 에 체크확인하세요

3. Help엔 또 이런 말이 있습니다.

Determine which of the source viewer plugins should be provided. Among other supported plugins are auto indent strategies, double click strategies, content formatter, and text presentation reconciler. The subsequent description will be restricted to the text presentation reconciler (see IPresentationReconciler). In the Java example editor, the text presentation reconciler is utilized to implement syntax highlighting.

atie의 이미지

덧붙여서, 소스가 편집 중인 상태에서 오른쪽 마우스 버튼, source-format하면 지정된 스타일대로 정렬, 들여쓰기 해줍니다. 자바 소스인 경우는, 바로 밑에 correct indentation 기능도 있고요.

----
I paint objects as I think them, not as I see them.
atie's minipage

futari의 이미지

ctrl+shift+f 인가.. 누르면 알아서 다 해주죠. ㅎㅎ

사용자 지정한대로...

파일 단위로도 됩니다.

파일 단위로 쓰긴 가끔 문제가 있지만 ㅡ.ㅡ

-------------------------
The universe is run by the complex interweaving of three elements: matter, energy, and enlightened self-interest.
- G'kar, Babylon 5

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.