Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions content/docs/preferences/extensions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ YAPF is used to format the Python codes. You can click Actions->Format Code or p

#### Program

* Clang Format:
- Clang Format:

The path to the `clang-format` executable, or simply `clang-format` if it's in the `PATH` environment variable.

* YAPF:
- YAPF:

The program of YAPF. It could be one of:

- `yapf`: You should be able to run `yapf` in the command line. The arguments can be empty.
Expand All @@ -42,19 +42,19 @@ YAPF is used to format the Python codes. You can click Actions->Format Code or p

#### Arguments

The arguments passed to the formatter.
The arguments passed to the formatter.

It should NOT contain `-i` (the in-place modification option).

* YAPF: This should be `-m yapf` if the program is a Python interpreter.
- YAPF: This should be `-m yapf` if the program is a Python interpreter.

#### Style

The style. The content here is the same as the content of a `.clang-format` file(Clang Format) or a `.style.yapf` file(YAPF).

* Clang Format: You can read [Clang-Format Style Options documentation](https://clang.llvm.org/docs/ClangFormatStyleOptions.html) or search for other materials to learn how to write the styles.
- Clang Format: You can read [Clang-Format Style Options documentation](https://clang.llvm.org/docs/ClangFormatStyleOptions.html) or search for other materials to learn how to write the styles.

* YAPF: You can check all possible configurations by running `yapf --style-help`, read the [documentation](https://github.com/google/yapf#formatting-style) or search for other materials to learn how to write the styles.
- YAPF: You can check all possible configurations by running `yapf --style-help`, read the [documentation](https://github.com/google/yapf#formatting-style) or search for other materials to learn how to write the styles.

## Language Server

Expand Down
15 changes: 7 additions & 8 deletions content/docs/preferences/language/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ For C++ and Java.

The compilation command. For example:

* C++: `g++ -Wall`.
- C++: `g++ -Wall`.

* Java: `javac`.
- Java: `javac`.

The command shouldn't contain the source file, the output file(C++) or the class path(Java), CP Editor automatically adds them.

For compilation flags, please refer to the manual of the compiler. For example:

* C++: You may want to add `-std=c++14` in the compile command to use C++14.
- C++: You may want to add `-std=c++14` in the compile command to use C++14.

#### Compiler Output Codec

Expand All @@ -35,10 +35,9 @@ It could be useful if you are using locales for your compiler and the compiler m

For C++ and Java.

* C++: The path of the executable file, i.e. the argument of the `-o` option of the compiler.

* Java: The path to save the class files.
- C++: The path of the executable file, i.e. the argument of the `-o` option of the compiler.

- Java: The path to save the class files.

If this path is relative, then it's relative to the source file (if it's an untitled tab, then relative to the [Temporary Directory](../general/\_index.md#temporary-directory)).

Expand All @@ -64,9 +63,9 @@ For Java and Python.

The command to run your code. For example:

* Java: `java`.
- Java: `java`.

* Python: `python`/`python2`/`python3`.
- Python: `python`/`python2`/`python3`.

This command shouldn't contain the class path(Java) or the class name(Java), CP Editor automatically adds them.

Expand Down