在VSCode中使用cmake-format插件對CMakeLists.txt文件格式化

Install and Configure cmake-format

Step 1: Install cmake-format
pip install cmake_format
Step 2: Install camke-format in vscode
Step 3: Set Extension Settings
{
    "files.associations": {
        "unistd.h": "c",
        "string.h": "c",
        "stdlib.h": "c"
    },
    "cmakeFormat.exePath": "/usr/local/bin/cmake-format"
}

 

Lst's format!

Format Document: Ctrl+Shift+I

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章