开发者

phpstorm javascript autoindent problem

开发者 https://www.devze.com 2023-03-10 06:04 出处:网络
writing a code block with auto indent. no manual tab开发者_JAVA技巧bing... $(document).ready(function() {

writing a code block with auto indent. no manual tab开发者_JAVA技巧bing...

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

got a result like that but it should be like:

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

a bug or i am missing something?


Please check this issue. Should be addressed in 2.1.1 or next update.

0

精彩评论

暂无评论...
验证码 换一张
取 消