如何在Power Query M中发表评论? [英] How do I comment in Power Query M?

查看:112
本文介绍了如何在Power Query M中发表评论?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法注释M代码/注释掉行或代码块?

Is there a way to comment M code / comment out lines or blocks of code?

推荐答案

M支持两种不同类型的注释:

M supports two different types of comments:


  • 单行注释可以// //

  • 开始注释行或使用/ * * /注释掉一行中间的文本(例如 = 1 + / *一些注释* / 2

  • Single line comments can be started with //
  • You can comment out multiple lines or comment out text in the middle of a line using /* */ (e.g. = 1 + /* some comment */ 2)

如果注释在行尾,但它们似乎仍然存在,似乎在编辑栏中消失了。您可以通过在高级编辑器中查看代码来验证这一点。

Comments might seem to disappear in the formula bar if they are at the end of the line, but they are still there. You can verify this by looking at your code in the Advanced Editor.

这篇关于如何在Power Query M中发表评论?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆