Curl Global Community

Full Version: CDEのコメント行付与時の+-記号の意味について
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
CDEで編集時、行コメントを付与する際、コメントする行にカーソルをおき、
[ctrl]+[/]を押すとその行がコメントになりますが、
(みなさん御存知でしたか?)
行によって

||++

||--

と、プラスマイナスの記号が付与されるのですが、プラスマイナスの振り分けの意味はどのように
なっているのでしょうか?これらの説明ってドキュメントビューワ等に出ているのでしょうか?
コメント対象の行に先頭のスペースの数が少なくとも4つ以上あるなら、||++でコメントされ、それ以外は||--でコメントされるようですね。
EclipseのCDEヘルプにあります。

Toggle Comment uses either ||++ or ||-- at the beginning of the line to mark the entire line as a comment. If all the selected lines have at least four spaces at the beginning, the editor replaces the initial spaces with ||++. Replacing the spaces keeps the commented code at the same indentation level as uncommented code, which makes the code easier to read. If any of the selected lines do not have at least four spaces at the beginning, the editor adds the string ||-- to the beginning of the line.
ドキュメントビューアばかり見ていてeclipseのヘルプを見るということを
すっかり忘れていましたBlush
どうもありがとうございました。