저작자 표시 비영리 변경 금지
posted by 뚱2

링크: https://www.jetbrains.com/idea/help/setting-log-options.html


<!-- logback.xml 설정 -->

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">



            %d{HH:mm:ss.SSS} [%-5level] [%thread:%X{username}] %msg - at %c.%M\(%F:%L\)%n




저작자 표시 비영리 변경 금지
posted by 뚱2

링크: https://www.jetbrains.com/idea/help/tuning-intellij-idea.html

저작자 표시 비영리 변경 금지
posted by 뚱2

링크: https://www.jetbrains.com/idea/help/stashing-and-unstashing-changes.html

Stashing과 Cleaning: https://git-scm.com/book/ko/v2/Git-도구-Stashing과-Cleaning

저작자 표시 비영리 변경 금지
posted by 뚱2

링크: https://www.jetbrains.com/idea/help/typescript-support.html

저작자 표시 비영리 변경 금지
posted by 뚱2

인텔리제이가 참 디테일하게 검사를 해준다.

하지만 어느 순간은 너무 과하다 할 정도로 검사를 한다.

제일 심한게 현재 프로젝트에서 Hibernate를 사용하는데 어노테이션을 사용하는 부분에서 매번 빨간 밑줄이 ㅡㅡ;

이럴때 Inspections 옵션(Unresolved database references in annotations)을 체크 해제하면 된다.

저작자 표시 비영리 변경 금지
posted by 뚱2

링크: http://manuals.zeroturnaround.com/jrebel/standalone/config.html

저작자 표시 비영리 변경 금지

'Java > jRebel' 카테고리의 다른 글

[jRebel] rebel.xml 환경 설정 하기  (0) 2014.11.15
[jRebel] 핫스왑 기능이 있는 jRebel 공짜로 쓰기  (0) 2012.11.26
posted by 뚱2

링크: https://intellij-support.jetbrains.com/entries/23455956-Selecting-the-JDK-version-the-IDE-will-run-under

저작자 표시 비영리 변경 금지
posted by 뚱2

* Mac을 기준으로

Preferences -> Editor -> Editor Tabs -> Mark modified tabs with asterisk -> [체크]

저작자 표시 비영리 변경 금지
posted by 뚱2

링크: http://mrkdev.tistory.com/5

CheckStyle-IDEA를 빼고는 다 사용해 봤는데 모두 정말 유용한 Plugin 이다.

저작자 표시 비영리 변경 금지
posted by 뚱2

링크: http://www.jetbrains.com/idea/documentation/migration_faq.html

저작자 표시 비영리 변경 금지
posted by 뚱2

링크: http://hadihariri.com/2014/01/06/intellij-idea-minimal-survival-guide/

저작자 표시 비영리 변경 금지
posted by 뚱2

링크: http://zeroturnaround.com/rebellabs/getting-started-with-intellij-idea-as-an-eclipse-user/

저작자 표시 비영리 변경 금지
posted by 뚱2

대부분 프로젝트는 개발환경과 배포 환경의 JRE를 맞춰서 개발합니다.

그런데 공통부분을 개발하거나 프레임워크 작업을 하게 되면은 아무래도 여러 JRE 버전을 테스트 하고 싶을때가 있습니다.

또한 프로젝트 컴파일 환경과 배포환경을 다르게 할때도 발생합니다.

Eclipse에서는 각 Tomcat별로 JRE를 다르게 해서 잘 사용했었는데 IntelliJ IDEA13에서는 한참 찾아헤맸습니다.

(* 맥 기준으로 작성되었습니다.)

Run/Debug Configurations을 선택합니다.

1. Use alternative JRE를 체크합니다.

2. DropBox에서 필요한 JRE를 선택합니다. 

    (* 저는 1.6.0, 1.7.0_45, 1.8.0 3개가 설치되어 있네요)

3. Apply 클릭

4. OK 클릭

저작자 표시 비영리 변경 금지
posted by 뚱2

링크 : https://intellij-support.jetbrains.com/entries/23455956-Selecting-the-JDK-version-the-IDE-will-run-under

저작자 표시 비영리 변경 금지
posted by 뚱2

링크 : http://www.jetbrains.com/idea/webhelp/live-templates.html

젠코딩 같이 쓸수 있는 IntelliJ 전용 템플릿 ouput, plain, surround 정도 사용하면 편할것 같다.

저작자 표시 비영리 변경 금지
posted by 뚱2

링크 : http://tutorials.jenkov.com/java-unit-testing/running-tests-with-idea.html

링크 : http://confluence.jetbrains.com/display/IntelliJIDEA/Creating+Unit+Tests

저작자 표시 비영리 변경 금지
posted by 뚱2

링크 : http://wiki.jetbrains.net/intellij/

저작자 표시 비영리 변경 금지
posted by 뚱2

링크 : http://plugins.jetbrains.com/plugin/?id=2190

링크 : https://marketplace.atlassian.com/plugins/com.atlassian.ide.plugins.idea




스크린샷? : http://whiteship.tistory.com/2493



저작자 표시 비영리 변경 금지
posted by 뚱2

링크 : http://www.slideshare.net/kingori/develop-android-app-using-intellij

저작자 표시 비영리 변경 금지
posted by 뚱2

링크 : http://h5bak.tistory.com/177



저작자 표시 비영리 변경 금지
posted by 뚱2

인텔리J 시작하기 Part1 (Getting Start IntelliJ) -기본 설정편-


인텔리J 시작하기 Part2 (Getting Start IntelliJ) -자바 프로젝트편-


인텔리J 시작하기 Part3 (Getting Start IntelliJ) – SVN -

: http://beyondj2ee.wordpress.com/2013/06/23/%EC%9D%B8%ED%85%94%EB%A6%ACj-%EC%8B%9C%EC%9E%91%ED%95%98%EA%B8%B0-part3-getting-start-intellij-svn/


인텔리J 시작하기 Part4 (Getting Start IntelliJ) – Git -

: http://beyondj2ee.wordpress.com/2013/06/28/%ec%9d%b8%ed%85%94%eb%a6%acj-%ec%8b%9c%ec%9e%91%ed%95%98%ea%b8%b0-part4-getting-start-intellij-git/

저작자 표시 비영리 변경 금지
posted by 뚱2

* 주석

여러줄 주석 (토글) : Ctrl + ?

한줄 주석    (토글) : Command + /

* Auto Import

Alt + Enter

저작자 표시 비영리 변경 금지
posted by 뚱2

저작자 표시 비영리 변경 금지
posted by 뚱2

링크 : http://wiki.jetbrains.net/intellij/Eclipse_FAQ 

What happened to my Workspace? Where are all my projects?

They're OK, but in a slightly different way.

IntelliJ IDEA creates a project for the entire code base you work with, and a module for each of its individual components. So, IntelliJ IDEA module is more like an Eclipse project, and project is roughly similar to Eclipse workspace. There's no exact equivalent to Eclipse's workspace that contains all your work, but you can open multiple projects in multiple frames at the same time.

This table can help you see how Eclipse and IntelliJ IDEA concepts map to each other:

EclipseIntelliJ IDEA
A number of projects, a workspaceProject
User libraryGlobal library
Classpath variablePath variable
Project dependencyModule dependency
LibraryModule library

How do I open my Eclipse projects now?

That's very easy. You have an option to either import, or link them.

IntelliJ IDEA supports Eclipse classpath module dependencies, so you can link your Eclipse projects to IntelliJ IDEA and work even in a mixed IDE team. Alternatively, you can import an Eclipse project to IntelliJ IDEA native format if you don't need any backward compatibility. If you're using Maven, you can directly open a pom.xml file and IntelliJ IDEA will import all dependencies, download the libraries if needed, and do all the setup completely.

Facets — what they are for?

To streamline the project configuration.

Facets encapsulate support for a variety of frameworks, technologies and languages. For example, to enable Spring in your project, you only have to add the corresponding facet. All libraries are downloaded and configured, you get the full range of coding assistance, refactorings, etc. Moreover, the code model is also recognized, so you are completely free from worrying about any configuration issues.

In most cases, you can add more than one facet of the same type to your project. For example, you can have multiple Web facets for deploying the application to different servers, or several EJB facets, each for its own EJB version. (See also Project Configuration and Configuring Project Structure.)

Where do I configure project JDK?

In the Project Structure dialog.

To add a JDK to project, press Ctrl+Alt+Shift+S, under Platform Settings click JDKs and specify JDK path. After that, click Project and specify which of the JDKs you have configured will be used now as the current project JDK. Remember that JDKs are configured at the IDE level, so when you create another project, you won't need to add the same JDK again.

Refer to Configuring Project SDKfor details.

How do I add files to my project?

Just copy them to the project folder. IntelliJ IDEA tracks all changes to project files and automatically takes an appropriate action.

How do I share my preferences?

Via project-level settings.

IntelliJ IDEA enables you share your code style settings, run configurations, inspection profiles, and more, by making them project-level, so that they are stored in the project description file and so are available to all team members.

You can also use settings synchronization via IntelliJ IDEA Server and take favorite settings with you to any computer where you're running IntelliJ IDEA. (See also IDE Settings Synchronization.)

How do I configure code templates ?

In IntelliJ IDEA you have Live Templates — predefined code fragments invoked by typing an associated abbreviation. They may include parameters that are used to automatically adjust them to the insertion context. Click here for more information about how to use the templates in code. To manage Live Templates, press Ctrl+Alt+S to open the Settings dialog, and under the IDE Settings, click Live Templates. (See also Code Generation.)

How do I make sure all my files are saved?

Don't worry. They are all saved automatically.

With IntelliJ IDEA you never need to worry about saving your files when you switch to another app, compile or run your code, perform a VCS operation, and so on. Refer to the section Saving and Reverting Changes for details.

For extra safety you can enable auto save after specified period of time. In case you need to roll back any unwanted changes, you can use Local History — IntelliJ IDEA built-in VCS.

What happened to incremental compilation? How do I compile my project?

It's there, but works slightly other way.

By default IntelliJ IDEA compiles files only when it's needed (when you run your app or explicily invoke the Make action), and so saves system resources for other tasks that can be more important at the moment. The compilation is incremental: IntelliJ IDEA keeps track of dependencies between source files and recompiles only if a file has been changed.

Files with compilation errors are highlighted, and so are the folders containing them — so you can easily analyze them via Project view. To see a list of all files with compilation errors, select Scope | Problemsfrom the View As combobox of the Project view. After each compilation, IntelliJ IDEA constantly performs background code analysis on files with errors, and removes the red highlighting automatically when you've fixed them.

To enable compiling files on every save, you can use the EclipseMode plugin: http://plugins.intellij.net/plugin/?id=3822 (third-party development, not bundled). To be able to run code with errors, you can select the Eclipse compiler in Settings dialog, Compiler, Java Compiler and add the -proceedOnError option to the Additional command line parameters for the compiler.

Which options are available for configuring code inspections?

With IntelliJ IDEA, you can define a set of active code inspections — a profile. IDE level profiles are available in all projects on current machine, project level profiles can be used by all team members. Here you can find some more information about inspecting the source code.

To configure inspection profiles either open the Settings dialog, or click the Hector icon in the toolbar. You can also configure inspections individually — every time a bulb pops up, telling you about a problem, press Alt+Enter, Right Arrow to open menu where you can configure or suppress this inspection for the current file or even entire project.

Where are my old favorite keyboard shortcuts?

IntelliJ IDEA includes a bundled Eclipse keymap, so you can select it in the Keymap page of the Settings dialog, if you prefer using shortcuts you're accustomed to. If you want to learn the IntelliJ IDEA keyboard shortcuts, you can read or print out the Default Keymap Reference from Help menu.

Refer to the Configuring Keyboard Shortcuts section for additional information.

I feel that the editor behaves differently. Am I right?

In Eclipse, virtual space (the possibility to place the caret after the end of a line) is disabled by default, which is contrary to IntelliJ IDEA default setting. To alter it, go to the Editor page of the Settings dialog, and clear the Allow placement of caret after end of line option.

By default, Eclipse highlights the usages of the identifier at caret. To enable this behavior in IntelliJ IDEA, select the option Highlight usages of element at caret on in the same place as above.

Also note that there's a maximum number of editor tabs (adjustable via Settings dialog), so if you are opening a new file when a maximum number of editors is already reached, the oldest one will be automatically closed.

Why are there three ways to invoke Code Completion?

In IntelliJ IDEA you have three types of completion, that work differently so that you can always pick what's best for the code you're working with.

For example, when you just need to quickly complete an obvious statement, you can press Ctrl+Space and it's done. It's called Basic Completion. It also comes in handy when you want to look at the complete list of available choices in the current context, or need to complete a keyword.

If you need more precision and don't want to scroll through an endless list of selections, use Ctrl+Shift+Space to narrow the selection down by the expression type. Smart Completion that is invoked this way, will filter the list for you, letting you get what you need quicker. Moreover, if you press it once again it will even show you the symbols that can be reached through a chained method call.

Finally, the Class Names Completion (Ctrl+Alt+Space) lets you quickly complete a class name, and insert an import statement if it's not referenced yet.

(See also Intelligent Coding Assistance.)

How do I configure VCS integrations? How do I add my project to VCS?

In IntelliJ IDEA you first configure a VCS by selecting its type and specifying the connection settings like server name and access credentials, and then map project folders to VCS you have configured.

To put a project under version control, simply map its root folder to the VCS you are using.

Refer to the section Enabling Version Control for details.

How do I work with VCS? Where to inspect the diffs?

In Eclipse you have Sync perspective that shows the difference between your local version of the code and that of VCS server. In IntelliJ IDEA this functionality is a small part of the Changes tool window, where the Local tab shows the changes you've done locally, the Incoming tab shows the changes that were checked in to the VCS server by other team members and not yet synced, and so on.

To learn how to work with differences in IntelliJ IDEA, refer to the section Handling Differences.

How do I check out a project from VCS?

It's the easiest way of creating a project from sources that you're checking out from VCS. Just click Check out from Version Control.

저작자 표시 비영리 변경 금지
posted by 뚱2

링크 : http://wiki.jetbrains.net/intellij/Creating_a_simple_Web_application_and_deploying_it_to_Tomcat 

저작자 표시 비영리 변경 금지
posted by 뚱2

출처 : http://tanu.wordpress.com/2010/09/24/moving-from-eclipse-to-intellij-idea/

Moving from Eclipse to Intellij Idea

Initial Struggle:

I have been Eclipse user for almost 2+ years. Suddenly one day i stumbled upon intellij idea. Courtesy of my team mates.

Initially moving from Eclipse to Idea was overwhelming. Neither i had patience nor time to learn new IDE with its own set of shortcuts.
Still after lotta of good reviews about it, decided to give it a try. Well at first i failed at it. The reason i was still using eclipse as primary IDE, since Idea shortcuts were completely different than eclipse and they were quite strange that time.

Somehow decided to give it one more shot, and this time it did click with me. I struggled initally but survived. Believe me its worth the struggle. It surely is a most intelligent IDE, especially if you are working with Javascript. Eclipse has worst Javascript support and its pain. I know there are plugins for it, but they are useless.

Idea Ninja:

No one can use IDE efficiently without mastering the shortcuts. Idea has excellent reference for shortcuts. I suggest you look into the complete idea keymap from here

If you are eclipse user, here is the small idea keymap with corresponding eclipse shortcuts.

Code CompletionCtrl + SpaceCtrl + Space 

Ctrl + Shift + Space

Ctrl + Alt + Space

Reformat codeCtrl+Shift+FCtrl + Alt + L
Optimize importsCtrl + Shift+ OCtrl + Alt + O
Delete line at caretCtrl+DCtrl + Y
ReplaceCtrl + FCtrl + R
Find in pathCtrl+HCtrl + Shift + F
Replace in pathCtrl + Shift + R
Step overF6F8
Step intoF5F7
Step outF7Shift + F8
Resume programF8F9
View breakpointsDebug ViewCtrl + Shift + F8
Go to classCtrl + Shift + TCtrl + N
Go to fileCtrl + Shift + RCtrl + Shift + N
Go to lineCtrl+LCtrl + G
Recent files popupCtrl + ECtrl + E
Go to declarationCtrl + Click or F3Ctrl + B or Ctrl + Click
Go to implementation(s)Ctrl+TCtrl + Alt + B
Type hierarchyF4Ctrl + H
Show usagesCtrl + Shift+GCtrl + Alt + F7
Generate code… (Getters, Setters, Constructors, 

hashCode/equals, toString)

Alt + InsertAlt + Shift+S


1. Learn to use Ctrl+J
Ctrl+J brings up the Live Template options based on where your cursor is. If you’re in Javadoc then there will be some Javadoc intentions, if you have code highlighted then there will be some surround intentions.

2. Learn to use Ctrl+Alt+T
Highlighting code and pressing Ctrl+Alt+T will bring up the “Surround With” menu.

3. Increase Your Heap Size
IDEA critics (rightly, in my experience) complain that it is slower than Eclipse. Well, your first step should be to increase the heap size. Locate your idea.exe.vmoptions file and open it with a text editer (IDEA works fine). My file is in C:\Program Files\JetBrains\IntelliJ IDEA 7.0.2\bin. Change the -Xmx line to allow a bigger heap. Mine is set at -Xmx512m.

저작자 표시 비영리 변경 금지
posted by 뚱2

링크 : http://www.jetbrains.com/idea/webhelp/intellij-idea.html 

저작자 표시 비영리 변경 금지
posted by 뚱2

링크 : http://www.jetbrains.com/idea/webhelp/adding-deleting-and-moving-lines.html 

라인 복사 : Command + D

라인 삭제 : Command + Y

라인 위로 이동 : Alt + Shift + Up

라인 아래로 이동 : Alt + Shift + Down

To add a line
  • Press Shift Enter to add a new line after the one where the caret is currently located and move the caret to the beginning of this new line.

    For instance, you have typed some text:


    Press Shift Enter to start the next line immediately:


To duplicate a line or fragment
  1. Place the caret at the line to be duplicated, or select the desired fragment of text.
  2. Press Command D.
To remove a line
  • Press Command Y to delete the line at caret.
To move a line
  1. Place the caret at the line to be moved.
  2. Do one of the following:
    • On the main menu, choose Code | Move Line Up or Code | Move Line Down.
    • Press Alt Shift Up or Alt Shift Down.

    IntelliJ IDEA moves the selected line one line up or down, performing the syntax check. For example:


    After moving line at caret:


저작자 표시 비영리 변경 금지
posted by 뚱2
IntelliJ IDEA 12부터 가능합니다.

Preferences -> IDE Settings -> Appearance -> Theme -> Darcula 선택

저작자 표시 비영리 변경 금지
posted by 뚱2