下载submodules
{
const buffer = [];
let i = 1;
for(let a of document.querySelectorAll("#list td.link > a")) {
const href = a.href;
if ("../" === href) continue;
const isDir = href.endsWith("/");
if(!isDir) {
if(!a.innerText.startsWith("*")) {
a.innerText = `* ${i++}: ${a.innerText}`;
}
buffer.push(`wget ${href}`)
}
}
console.log(buffer.join("\n"));
}
AStyle缩进
- 下载AStyle
Qt Creator
、About Plugins
、启用Beautifier
Qt Creator
、Tools
、Options
、Beautifier
、
General
、Enable auto format on file save
Artistic Style
、Options
、Use customed style
、输入以下内容
--style=java
--mode=c
--convert-tabs
--indent=spaces=4
--indent-modifiers
--indent-switches
--indent-cases
--indent-namespaces
--indent-col1-comments
--indent-preprocessor
--pad-oper
--pad-comma
--pad-header
--unpad-paren
--align-pointer=type
--align-reference=type
--add-braces
--delete-empty-lines
--lineend=linux