为了一致性,我总是使用4个空格来缩进代码块。
For consistency, I always use four Spaces to indent a block.
我只是用了缩进代码,就象我一直在C程序里所做的那样,这样足矣。
I just indented code, pretty much as I would have done in a C program anyway, and it worked.
在是否使用缩进代码的空格或制表符永无休止的辩论中,我更喜欢空间。
In the never-ending debate over whether to use SPACEs or TABs for indenting code, I prefer SPACEs.
由于我总是缩进我的代码,所以我没遇到这样的问题。
Since I always indent my code, I don't have a problem with this.
注:由于您可能是复制并粘贴了这段代码,请返回查看并确保每个缩进都是两个空格,并且未使用任何制表符。
NOTE: Since you probably copied and pasted that code, go back and make sure that each indent is two Spaces, and that no tabs were used.
让我相信换行和缩进能保证代码的结构和运行?
Trust newlines and indents to keep my code not only structured but running?
清单14显示减少缩进(Outdent)格式按钮的代码。
Listing 14 shows the code for the Outdent formatting button.
我之前提到过缩进python代码的需要。
Sass的一个关键特性是缩进式的语法,这种语法可以产生柱式外观的代码。
One of the key features of Sass is its indentation-based syntax, which gives you curly-brace and semi-column free code.
实施可读性的Python的特性之一是代码一贯缩进的需求。
One of Python's features that enforces readability is the requirement that code be indented consistently. For example, the following two examples in Figure 1 are different.
你可以使用Schliemann来创建对任何语言的基本支持(包括语法高亮、代码折叠、缩进等特性都是非常容易配置的)。
You can use Schliemann to create basic support for any language (features such as syntax coloring, code folding, indentation are really easily configured).
在用某些编程语言编写代码时,缩进是样式的重要部分,可以确保代码的可读性更好。
When writing code in certain programming languages, indentation is an important part of the style to ensure that the code is more readable.
例如,在您生成代码以后,代码缩进格式会被保存下来。
For example, after you generate the code, the indentation is preserved.
您可以配置所有格式,包括源代码中的各个元素所需的缩进,以及导入组之间显示的空行数目。
You can configure everything from how much indentation is required for each element in the source code to how many blank lines appear between import groups.
当然,如果代码的缩进不能正确反映它的范围,那么这种情况下必须进行重新格式化。
Unless, of course, the indentation of your code doesn't correctly reflect its scope, in which case you fully deserve the formatting catastrophe about to befall you.
在代码中适当地进行缩进,增加代码的可读性。
举例来说,以统一的格式编写的代码较之仓促编写的代码(缺少注释、适当的缩进等)更有价值。
As an example, writing code that is formatted in a consistent manner is more valuable than code that was written in a hurry — lacking comments, proper indentation and the like.
它有很好的语法高亮(支持多种语言)、好几种代码折叠的风格、支持块缩进/取消缩进。
It has good syntax highlighting (in lots of languages), several styles of code folding, and block indent/dedent.
在这本书中,作者描述了各种规则,例如用小写字母加上用于分隔单词的连字符来命名目标,以及代码行长度和缩进等。
In it, the authors describe rules such as naming targets using lowercase with hyphens separating words, line length, and indentation.
如果你将你的代码设置地非常好看,拥有许多的缩进,你有没有检查在每行的结束之后,行分隔符之前,有没有任何标签代码?
If you have set your code to look pretty with lots of indents, have you checked to see if there are any TAB codes at the end of the line before the line break?
Python遵循这一模型,使用缩进来分隔代码块与程序的其余部分。
Python follows this model, using indentation to separate blocks of code from the rest of the program.
它采用了Haml的思想,使用缩进而不是括号这样的分隔符来定义代码块或者内嵌级别。
Sass uses Haml's idea of using indentation instead of explicit delimiters, like braces, to define blocks or nesting levels.
RubyMine拥有自动代码格式化功能,如括号匹配、代码折叠、自定义格式、缩进和TODO标记。
RubyMine performs automatic Ruby code styling, with brace matching and folding, custom formatting, indentation and TODO marks.
他们需要一些垂直缩进的帮助来查看代码的相应部分。
They need some kind of vertical indentation to help them see corresponding parts of the code.
虽然语句的缩进会让代码结构看着比较清晰明显,但嵌套的条件语句读起来还是有点难度。所以建议你如果可以的话,尽量避免使用嵌套的条件判断。
Although the indentation of the statements makes the structure apparent, nested conditionals become difficult to read very quickly. It is a good idea to avoid them when you can.
如何设置制表符缩进谷歌代码?
这很有用,特别是你想缩进好代码当中的循环或者子函数等等的时候。
This is very useful when you are indenting your code in structures like loops and procedures.
注释缩进和其注释的代码在同一层次。
Indent comment at the same level of indentation as the code you are documenting.
如果使用新行将表达式与标识符分离,则必须将表达式的每个行缩进,如以下代码中所示。
If you separate the expression from the identifier by using a new line, you must indent each line of the expression, as in the following code.
如果使用新行将表达式与标识符分离,则必须将表达式的每个行缩进,如以下代码中所示。
If you separate the expression from the identifier by using a new line, you must indent each line of the expression, as in the following code.
应用推荐