To uncomment in Japanese?


In the context of computer programming, how to say `to uncomment`?

For instance, here I uncomment a line:

[code]

    // Before
    // myvar = 3;
    
    // After
    myvar = 3;
    
[/code]

I would use `コメントアウトする`, but I also see `コメントじゃなくする`, `非コメント化する`, `コメントを外す`
[in use](http://code.google.com/p/sa4cob2db/issues/detail?id=25).




You present four choices:

  1. I don't think you should use `コメントアウトする` to mean "uncomment". It properly means "comment out", but unfortunately, the meaning may not be obvious unless you're familiar with the English term. It has [caused confusion in the past](http://sakaguch.com/pastbbs/0013/B0006925.html), so if I used the term at all, I'd be prepared to clarify by saying either コメントにする or [コメントにして無視されるようにする](http://ejje.weblio.jp/sentence/content/%E3%82%B3%E3%83%A1%E3%83%B3%E3%83%88%E3%81%AB%E3%81%97%E3%81%A6%E7%84%A1%E8%A6%96%E3%81%95%E3%82%8C%E3%82%8B%E3%82%88%E3%81%86%E3%81%AB%E3%81%99%E3%82%8B).

  2. I would also avoid [`コメントじゃなくする`](http://www.google.co.jp/search?hl=ja&q=%22%E3%82%B3%E3%83%A1%E3%83%B3%E3%83%88%E3%81%98%E3%82%83%E3%81%AA%E3%81%8F%E3%81%99%E3%82%8B%22), simply because it seems rare.

  3. [`[非]{ひ}コメント[化]{か}する`](http://www.google.co.jp/search?q=%22%E9%9D%9E%E3%82%B3%E3%83%A1%E3%83%B3%E3%83%88%E5%8C%96%E3%81%99%E3%82%8B%22&hl=ja&safe=off&prmd=ivns&start=90&sa=N) likewise doesn't seem _terribly_ common, though I'd choose it over the じゃなく version in choice #2.

  4. `コメントを[外]{はず}す` is my pick out of the choices you presented. It appears to be widely used, it's listed in Weblio and ALC, and I think it's unlikely to cause confusion. 

`コメントアウトを外す` is an alternative form, but I see no reason to prefer it over the
shorter version.

Finally, there is another common choice you failed to mention:

  1. `コメント（を）[削除]{さくじょ}する`. It's commonly used and listed in Weblio and ALC. That said, in other contexts like [blo](http://support.google.com/blogger/bin/answer.py?hl=ja&answer=42398)[gs](http://helps.ameba.jp/faq/blog/article/post_76.html), [forums](http://nomi-tomo.net/help/detail06.php), and [so on](http://support.google.com/youtube/bin/answer.py?hl=ja&answer=57970), コメントを削除する means to remove a comment! I'd choose コメントを外す over this because of the potential ambiguity, though my guess is that in practice it's unlikely to cause confusion.

`コメントアウトを削除する` is a longer alternative, but like before, I see no reason to
prefer it over the shorter version.

In the end, my choice for "uncomment" is `コメントを外す`.




You present four choices:

  1. I don't think you should use `コメントアウトする` to mean "uncomment". It properly means "comment out", but unfortunately, the meaning may not be obvious unless you're familiar with the English term. It has [caused confusion in the past](http://sakaguch.com/pastbbs/0013/B0006925.html), so if I used the term at all, I'd be prepared to clarify by saying either コメントにする or [コメントにして無視されるようにする](http://ejje.weblio.jp/sentence/content/%E3%82%B3%E3%83%A1%E3%83%B3%E3%83%88%E3%81%AB%E3%81%97%E3%81%A6%E7%84%A1%E8%A6%96%E3%81%95%E3%82%8C%E3%82%8B%E3%82%88%E3%81%86%E3%81%AB%E3%81%99%E3%82%8B).

  2. I would also avoid [`コメントじゃなくする`](http://www.google.co.jp/search?hl=ja&q=%22%E3%82%B3%E3%83%A1%E3%83%B3%E3%83%88%E3%81%98%E3%82%83%E3%81%AA%E3%81%8F%E3%81%99%E3%82%8B%22), simply because it seems rare.

  3. [`[非]{ひ}コメント[化]{か}する`](http://www.google.co.jp/search?q=%22%E9%9D%9E%E3%82%B3%E3%83%A1%E3%83%B3%E3%83%88%E5%8C%96%E3%81%99%E3%82%8B%22&hl=ja&safe=off&prmd=ivns&start=90&sa=N) likewise doesn't seem _terribly_ common, though I'd choose it over the じゃなく version in choice #2.

  4. `コメントを[外]{はず}す` is my pick out of the choices you presented. It appears to be widely used, it's listed in Weblio and ALC, and I think it's unlikely to cause confusion. 

`コメントアウトを外す` is an alternative form, but I see no reason to prefer it over the
shorter version.

Finally, there is another common choice you failed to mention:

  1. `コメント（を）[削除]{さくじょ}する`. It's commonly used and listed in Weblio and ALC. That said, in other contexts like [blo](http://support.google.com/blogger/bin/answer.py?hl=ja&answer=42398)[gs](http://helps.ameba.jp/faq/blog/article/post_76.html), [forums](http://nomi-tomo.net/help/detail06.php), and [so on](http://support.google.com/youtube/bin/answer.py?hl=ja&answer=57970), コメントを削除する means to remove a comment! I'd choose コメントを外す over this because of the potential ambiguity, though my guess is that in practice it's unlikely to cause confusion.

`コメントアウトを削除する` is a longer alternative, but like before, I see no reason to
prefer it over the shorter version.

In the end, my choice for "uncomment" is `コメントを外す`.

