gpt4 book ai didi

syntax - CoffeeScript 中无缓冲的多行注释?

转载 作者:行者123 更新时间:2023-12-03 01:15:06 24 4
gpt4 key购买 nike

如果我错了,请纠正我,在 CoffeeScript 中拥有无缓冲(不输出到 .js)注释的唯一方法是

# This is the only way to mute this single-line comments

### 缓冲多行注释

### This will be outputted to the .js
For things like copyright notices.
###

但是没有办法拥有无缓冲的多行注释吗?

# This is the only way to mute
# multiple-lines

谢谢。

最佳答案

正确。但这并不像看起来那么困难,因为您的文本编辑器可能提供用于注释/取消注释行的键盘快捷键。例如,在带有 jashkenas bundle 的 TextMate 中,您只需选择要注释的行,然后按 Cmd+/# 放在每行前面。同样的快捷方式也可以以这种方式取消注释行。

关于syntax - CoffeeScript 中无缓冲的多行注释?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7787621/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com