Sunday, February 12, 2006

Tips for IntelliJ - 1: Adding a new file template



IntelliJ allows you to use his own file templates. For instance, you can define an html file template. Then whenever you let IntelliJ to create a new html file, your file template is ready to fill. To do this, go to File/Settings/File Templates. Add a new template in the Templates tab. Fill the content of the file template. Then go to the Project tree. Insert a new file by pressing Alt+Insert. You will see the new file template is there.

To see this in action: http://img143.imageshack.us/my.php?image=creatinghtmltemplateinintellij.swf

Read More...

Wednesday, February 08, 2006

Rename A Folder In StarTeam

StarTeam doesn't allow to rename a folder. You can rename the folder. But then you will lose the history of the files in this folder. This is not good because the aim of using a configuration management tool is not to lose anything.

There is a way to solve this problem. Say that there is a folder called my-folder. You want to rename the folder as your-folder. Create a new folder in local disk named "your-folder" using StarTeam. Then go to "my-folder". Drag the files in this folder to "your-folder". Select my-file and open History tab. You will see the whole history of the file without losing anything. Then delete my-folder.

You can use this method when using refactoring commands like "Rename File" or "Rename Folder" of your favorite IDE.

Read More...