【问题标题】:phpstorm javascript autoindent problemphpstorm javascript自动缩进问题
【发布时间】:2011-06-02 22:13:40
【问题描述】:

编写带有自动缩进的代码块。没有手动标签...

$(document).ready(function() {
        $("#welc").toggle(function() {
            $(this).val("hello");
        }, function() {
                    $(this).val('hell');
                });
    });
</script>

得到了这样的结果,但应该是这样的:

<script type="text/javascript">
    $(document).ready(function() {
        $("#welc").toggle(function() {
            $(this).val("hello");
        }, function() {
            $(this).val('hell');
        });
    });
</script>

一个错误还是我遗漏了什么?

【问题讨论】:

    标签: intellij-idea phpstorm


    【解决方案1】:

    check this issue。应在 2.1.1 或下一次更新中解决。

    【讨论】:

    • CrazyCoder,也没有对 jQuery 中匿名内部函数的自动完成支持,所以我需要自己关闭大括号。也请寻找这个。
    猜你喜欢
    • 2019-03-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-31
    • 1970-01-01
    • 2016-02-20
    • 1970-01-01
    相关资源
    最近更新 更多