문제

I'm looking for a systematic way how to have in my eclipse projects' code, private comments (which I do not want other team members to see when they check out my code), as well as public comments (which I do want to share with others); a way that will allow me to only commit to svn the code with comments I want to make public?

I use eclipse subversive.

도움이 되었습니까?

해결책

Create files with the same base name, but the extension .notes. Thus the class named Plover would be declared in Plover.hpp, defined in Plover.cpp and your private notes would be in Plover.notes.

You can then tell SVN not to check in your notes file using a command like:

svn propset svn:ignore "*.notes" 

다른 팁

There is nothing called private comments and public comments. Any thing you commit will be seen by everyone who has access to your project in svn. The best way to have private comments will be in your notepad.

If you really want to take notes in eclipse while you are coding look at this plugin or you can search for similar other plugins.

Notepad for eclipse

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top