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

For instance, here I uncomment a line:

```

    // Before
    // myvar = 3;
    
    // After
    myvar = 3;
    
```

I would use `コメントアウトする`, but I also see `コメントじゃなくする`, `非コメント化する`, `コメントを外す`
[in use](http://code.google.com/p/sa4cob2db/issues/detail?id=25).
CC BY-SA 3.0
2013-02-18T07:27:53.563
11249
2013-02-19T11:22:03.360
2013-02-18T15:03:30.917
107
question
word-choice translation computing
To uncomment in Japanese?
Consensus in the ALC corpus (all technical entries that match your example
case) would be for `コメント解除【かいじょ】する`.

Ex:

> デフォルトの/etc/rsyncd.conf設定ファイルを編集し、［gentoo-
> portage］の部分をコメント解除し、addressオプションを追加します。
>
> GPMを使用する前に、マウスの接続場所とプロトコルに対応する行をコメント解除する必要があります。

One example uses `コメントを外す【はずす】`, which also makes sense, but seems less
common:

>
> ローカルのアプリケーションしかMySQLデータベースにアクセスする必要がなければ、/etc/mysql/my.cnfにおいて下記ラインのコメントをはずして下さい。
CC BY-SA 3.0
2013-02-18T13:35:52.253
11252
2013-02-18T13:35:52.253
2020-06-17T08:18:27.500
-1
290
11249
answer
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 `コメントを外す`.
CC BY-SA 3.0
2013-02-19T11:22:03.360
11265
2013-02-19T11:22:03.360
11249
answer