Cool Format function introduction:
1. Brand new Ribbon interface, easy to operate
2. Supports all, partial and batch formatting methods
3. Customizable code formatting style
4. Support code highlighting on web pages and blogs
The formatting function is divided into "quick formatting", "selected formatting" and "batch formatting". The formatting style parameters of various languages can be set in detail in the "Advanced" panel → "Formatting Settings".
"Quick format" is to format the full-text content, "Selected format" is to format the currently selected content, "Batch format" can batch format multiple files, and the filtered file suffix The name can be set in detail in the "Advanced" panel → "Extension Settings". It is best to back up your important personal files before performing "Batch Format". Examples of formatting effects are as follows:
Before C++ code formatting:
intFoo(boolisBar)
{if(isBar){
bar();return1;
}else
return0;}
After C++ code formatting:
intFoo(boolisBar)
{
if(isBar)
{
bar();
return1;
}
else
return0;
}
The highlighting function editor supports highlighting in multiple languages. Highlighting fonts, colors and other settings can be set in detail in the "Advanced" panel → "Editor Settings". It also supports code highlighting to web pages, pasting directly to blogs, etc., maintaining highlight color, indentation, etc. Detailed settings can be made in the "Advanced" panel → "Highlight Settings". The highlight effect is similar to the following:
intFoo(boolisBar)
{
if(isBar)
{
bar();
return1;
}
else
return0;
}
Cool Format other features:
3.1 Import and export
It supports the import and export of configurations, and you can easily share formatting settings, extension settings, editor settings, and highlight settings with others.
3.2 Theme style
Supports three color schemes of Office 2010: blue, black, and silver. It can be set in "File" → "Options" → "Common".
3.3 Interface language
Currently, it supports two interface languages: Chinese and English. It can be set in "File" → "Options" → "Common".
3.4 Shortcut keys
In order to prevent shortcut key conflicts, you can set new shortcut keys in "File" → "Options" → "Customize" → "Customize" button of keyboard shortcuts. See here.
3.5 Command line usage
Supports command line use. Directly pass in "-f file name", which can automatically format the corresponding language according to the suffix name of the file. In addition, it can also be called as an external tool of VS.
Cool Format update log:
Source code formatting tool CoolFormatV3.4 supports plug-ins for other editors
V3.3 version adds Objective-C formatting and a new formatting setting interface
Version V3.2 fixes parameter errors and adds file association function
Version V3.1 fixes assembly comment issues, Shift selection issues, and optimizes highlighting operations
Version V3.0 adds CSS and JSON formatting, a new interface, and optimized operations
Version V2.5 adds Javascript, PHP, and SQL formatting, and changes the highlighting style
V2.4 version adds file encoding recognition and HTML/XML code formatting
Version V2.3 fixes some bugs, adds line number highlighting, configuration settings, indentation, comments, etc.
it works
it works
it works