网页 综合 更新时间 2026-11-13 17:26:27

Colors and fonts | AppCode Documentation

自动蜘蛛 www.jetbrains.com 正文约 5818 字
Colors and fonts | AppCode Documentation
As a developer, you work with a lot of text resources: the source code in the editor, search results, debugger information, console input and output, and so on. Colors and font styles are used to format this text and help you better understand it at a glance.
AppCode lets you choose between configurable color schemes that define colors and fonts used in IDE text.
A color scheme is not the same as the interface theme, which defines the appearance of windows, dialogs, and controls.
You can use a predefined color scheme or customize it to your liking. It is also possible to share schemes.
Press Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme.
Use the Scheme list to select a color scheme.
If you install a plugin with a color scheme, that scheme will be added to the list of predefined schemes. For more information, see Share color schemes.
You can customize a predefined color scheme, but it is recommended to create a duplicate for your custom color and font settings:
Press Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme.
Select a color scheme, click , and then click Duplicate.
(Optional) To rename your custom scheme, click and select Rename.
Predefined color schemes are listed in bold font. If you customize a predefined color scheme, it will be displayed in blue. To restore a predefined color scheme to default settings, click and select Restore Defaults. You cannot remove predefined color schemes.
To define color and font settings, open the Editor | Color Scheme page of the IDE settings Ctrl+Alt+S. The settings under Editor | Color Scheme are separated into sections. For example, the General section defines basic editor colors, such as the gutter, line numbers, errors, warnings, popups, hints, and so on. The Language Defaults section contains common syntax highlighting settings, which are applied to all supported programming languages by default. In most cases, it is sufficient to configure Language Defaults and make adjustments for specific languages if necessary. To change inherited color settings for an element, clear the Inherit values from checkbox.
By default, the color scheme defines syntax highlighting for reserved words and other symbols in your source code: operators, keywords, suggestions, string literals, and so on. If you have a function or method with many parameters and local variables, it may be hard to distinguish them from one another at a glance. You can use semantic highlighting to assign a different color to each parameter and local variable.
Press Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme | Language Defaults | Semantic highlighting.
Select the Semantic highlighting checkbox and customize the color ranges if necessary.
If you are used to a specific color scheme, you can export it from one installation and import it to another one. You can also share color schemes with other developers. If necessary, you can import your favorite color settings from Xcode.
AppCode can save your color scheme settings as an XML file with the .icls extension. You can then import the file to another installation.
Press Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme.
From the Scheme list, select a color scheme, click , then click Export and select IntelliJ IDEA color scheme (.icls).
Specify the name and location of the file and save it.
The plugin can be uploaded to the plugin repository for others to install. This format has several benefits over an XML file, including metadata, feedback, download statistics, and versioning (when you upload a new version of the plugin, users will be notified about it).
Press Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme.
From the Scheme list, select a color scheme, click , then click Export and select Color scheme plugin .jar.
In the Create Color Scheme Plugin dialog, specify the version details and vendor information. Then click OK.
When you install a plugin with a color scheme, that scheme will be added to the list of predefined schemes.
Press Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme.
From the Scheme list, select a color scheme, click , then click Import Scheme.
To customize the default font used in the editor, open the Editor | Font page of the IDE settings Ctrl+Alt+S. This font is used and inherited in all color schemes by default. For more information, see Font.
To configure the font used in the AppCode interface (tool windows, toolbars, menus, and so on), open the IDE settings Ctrl+Alt+S, and go to Appearance & Behavior | Appearance. From the Use custom font list, select a font and specify the font size in the Size field.
You can set a different font for your current scheme.
This is not recommended if you are planning to share your scheme or use it on other platforms that may not support the selected font. In such cases, use the default global font settings.
Press Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme | Color Scheme Font.
Select the Use color scheme font instead of the default checkbox.
By default, text in the console uses the same font as the color scheme. To use a different font in the console:
Press Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme | Console Font.
Select the Use console font instead of the default checkbox.
AppCode can use any font that is available in your operating system or in the Java runtime that is used to run AppCode. If you want to add another font, you need to install it in your OS, and AppCode will discover it after a restart.
Download the desired TTF font package and unzip it to extract font files (.ttf ). For the font to work correctly, it should have at least 4 files: Normal, Bold, Italic, and Bold Italic.
~/.local/share/fonts/usr/share/fontsfc-cache -f -v
访问原文 返回搜索 https://www.jetbrains.com/help/objc/configuring-colors-and-fonts.html
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。