← 返回命令列表

Linux command

kwrite 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Open

kwrite [path/to/file]

Example

kwrite [file1] [file2]

Example

kwrite --encoding [UTF-8] [path/to/file]

Example

kwrite --line [line_number] --column [column_number] [path/to/file]

说明

kwrite is a simple text editor from the KDE project. It provides syntax highlighting for many programming languages, code folding, and integration with KDE services. KWrite shares the same editor component (KTextEditor) as Kate, making it a lightweight single-document alternative when full IDE features aren't needed.

参数

--encoding _ENCODING_
Open file with specified character encoding
--line _LINE_
Navigate to specified line number
--column _COLUMN_
Navigate to specified column number
--stdin
Read document from stdin
-h, --help
Display help message

FAQ

What is the kwrite command used for?

kwrite is a simple text editor from the KDE project. It provides syntax highlighting for many programming languages, code folding, and integration with KDE services. KWrite shares the same editor component (KTextEditor) as Kate, making it a lightweight single-document alternative when full IDE features aren't needed.

How do I run a basic kwrite example?

Run `kwrite [path/to/file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --encoding _ENCODING_ do in kwrite?

Open file with specified character encoding