当前位置: 首页 > wzjs >正文

动态Js文件 做网站标题你就知道

动态Js文件 做网站标题,你就知道,杭州房产免费网站建设,最新疫情最新消息2023年7月份文章目录 0 前言1 工具准备1.1 插件准备1.2 添加.clang-format1.3 添加配置 2 快速上手 0 前言 各路大神都说clangd好,我也来试试。这篇主要讲格式化部分。 1 工具准备 1.1 插件准备 照图安装。 1.2 添加.clang-format 右键添加文件,跟添加个.h或者.c…

文章目录

  • 0 前言
  • 1 工具准备
    • 1.1 插件准备
    • 1.2 添加.clang-format
    • 1.3 添加配置
  • 2 快速上手


0 前言

各路大神都说clangd好,我也来试试。这篇主要讲格式化部分。


1 工具准备

1.1 插件准备

在这里插入图片描述
照图安装。

1.2 添加.clang-format

在这里插入图片描述
右键添加文件,跟添加个.h或者.c文件一样。

1.3 添加配置

点进.clang-format,添加如下内容:
英语好的看字面意思,不好的让AI给翻译翻译,动手试试修改效果。不一一赘述。

---
Language:        Cpp
# BasedOnStyle:  LLVM
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
AlignConsecutiveAssignments:Enabled:         falseAcrossEmptyLines: falseAcrossComments:  falseAlignCompound:   falseAlignFunctionPointers: falsePadOperators:    true
AlignConsecutiveBitFields:Enabled:         falseAcrossEmptyLines: falseAcrossComments:  falseAlignCompound:   falseAlignFunctionPointers: falsePadOperators:    false
AlignConsecutiveDeclarations:Enabled:         falseAcrossEmptyLines: falseAcrossComments:  falseAlignCompound:   falseAlignFunctionPointers: falsePadOperators:    false
# 宏定义自动对齐
AlignConsecutiveMacros:Enabled:         trueAcrossEmptyLines: falseAcrossComments:  falseAlignCompound:   falseAlignFunctionPointers: falsePadOperators:    false
AlignConsecutiveShortCaseStatements:Enabled:         falseAcrossEmptyLines: falseAcrossComments:  falseAlignCaseColons: false
AlignEscapedNewlines: Right
AlignOperands:   Align
AlignTrailingComments:Kind:            AlwaysOverEmptyLines:  0
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowBreakBeforeNoexceptSpecifier: Never
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortCompoundRequirementOnASingleLine: true
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: MultiLine
AttributeMacros:- __capability
BinPackArguments: true
BinPackParameters: true
BitFieldColonSpacing: Both
BraceWrapping:AfterCaseLabel:  falseAfterClass:      falseAfterControlStatement: NeverAfterEnum:       falseAfterExternBlock: falseAfterFunction:   trueAfterNamespace:  falseAfterObjCDeclaration: falseAfterStruct:     trueAfterUnion:      trueBeforeCatch:     falseBeforeElse:      falseBeforeLambdaBody: falseBeforeWhile:     falseIndentBraces:    falseSplitEmptyFunction: trueSplitEmptyRecord: trueSplitEmptyNamespace: true
BreakAdjacentStringLiterals: true
BreakAfterAttributes: Leave
BreakAfterJavaFieldAnnotations: false
BreakArrays:     true
BreakBeforeBinaryOperators: None
BreakBeforeConceptDeclarations: Always
BreakBeforeBraces: Allman
BreakBeforeInlineASMColon: OnlyMultiline
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
BreakStringLiterals: true
ColumnLimit:     80
CommentPragmas:  '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat:   false
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:- foreach- Q_FOREACH- BOOST_FOREACH
IfMacros:- KJ_IF_MAYBE
IncludeBlocks:   Preserve
IncludeCategories:- Regex:           '^"(llvm|llvm-c|clang|clang-c)/'Priority:        2SortPriority:    0CaseSensitive:   false- Regex:           '^(<|"(gtest|gmock|isl|json)/)'Priority:        3SortPriority:    0CaseSensitive:   false- Regex:           '.*'Priority:        1SortPriority:    0CaseSensitive:   false
IncludeIsMainRegex: '(Test)?$'
IncludeIsMainSourceRegex: ''
IndentAccessModifiers: false
IndentCaseBlocks: false
IndentCaseLabels: false
IndentExternBlock: AfterExternBlock
IndentGotoLabels: true
IndentPPDirectives: None
IndentRequiresClause: true
IndentWidth:     4
IndentWrappedFunctionNames: false
InsertBraces:    false
InsertNewlineAtEOF: false
InsertTrailingCommas: None
IntegerLiteralSeparator:Binary:          0BinaryMinDigits: 0Decimal:         0DecimalMinDigits: 0Hex:             0HexMinDigits:    0
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
KeepEmptyLinesAtEOF: false
LambdaBodyIndentation: Signature
LineEnding:      DeriveLF
MacroBlockBegin: ''
MacroBlockEnd:   ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PackConstructorInitializers: BinPack
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakOpenParenthesis: 0
PenaltyBreakScopeResolution: 500
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyIndentedWhitespace: 0
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
PPIndentWidth:   -1
QualifierAlignment: Leave
ReferenceAlignment: Pointer
ReflowComments:  false
RemoveBracesLLVM: false
RemoveParentheses: Leave
RemoveSemicolon: false
RequiresClausePosition: OwnLine
RequiresExpressionIndentation: OuterScope
SeparateDefinitionBlocks: Leave
ShortNamespaceLines: 1
SkipMacroDefinitionBody: false
SortIncludes:    CaseSensitive
SortJavaStaticImport: Before
SortUsingDeclarations: LexicographicNumeric
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceAroundPointerQualifiers: Default
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeJsonColon: false
SpaceBeforeParens: ControlStatements
SpaceBeforeParensOptions:AfterControlStatements: trueAfterForeachMacros: trueAfterFunctionDefinitionName: falseAfterFunctionDeclarationName: falseAfterIfMacros:   trueAfterOverloadedOperator: falseAfterPlacementOperator: trueAfterRequiresInClause: falseAfterRequiresInExpression: falseBeforeNonEmptyParentheses: false
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpaceInEmptyBlock: false
SpacesBeforeTrailingComments: 1
SpacesInAngles:  Never
SpacesInContainerLiterals: true
SpacesInLineCommentPrefix:Minimum:         1Maximum:         -1
SpacesInParens:  Never
SpacesInParensOptions:InCStyleCasts:   falseInConditionalStatements: falseInEmptyParentheses: falseOther:           false
SpacesInSquareBrackets: false
Standard:        Latest
StatementAttributeLikeMacros:- Q_EMIT
StatementMacros:- Q_UNUSED- QT_REQUIRE_VERSION
TabWidth:        8
UseTab:          Never
VerilogBreakBetweenInstancePorts: true
WhitespaceSensitiveMacros:- BOOST_PP_STRINGIZE- CF_SWIFT_NAME- NS_SWIFT_NAME- PP_STRINGIZE- STRINGIZE
...

2 快速上手

快捷键 alt + shift + F。
Done!

http://www.dtcms.com/wzjs/390956.html

相关文章:

  • wordpress怎么给图片添加超链接百度关键词seo年度费用
  • 音乐网站建设目标开发一款app软件需要多少钱
  • 建站公司会有多大的坑百度广告优化
  • 网页设计与网站建设 作业alexa
  • 做网站排名步骤推广注册app拿佣金
  • 做网站有什么书如何添加百度指数
  • wordpress默认邮件在哪里设置企业网站seo平台
  • jsp网站开发遇到的问题seo优化报价
  • 做网站前期构架图百度关键词代做排名
  • 做网站用到其他网站的素材是侵权吗一键免费生成网页的网站
  • 如何判断网站程序使用asp还是php查销售数据的网站
  • 建设镇政府门户网站关键词搜索点击软件
  • 新手学做网站 iso ed2k百度百度一下就知道
  • 做外贸面料哪个网站可以接单广州seo服务
  • 制作外贸网站公司自己搭建网站
  • 河池公司做网站seo技术分享免费咨询
  • 如何修改代码wordpressseo优化方案案例
  • 建公司网站报价百度外包公司有哪些
  • 系统难还是网站设计难做网站开发外包
  • 注册页面模板搜索引擎优化seo网站
  • 襄州区住房和城乡建设局网站自动点击器软件
  • 网站建设好公司企业邮箱注册申请
  • 定制网站建设报价单推广代理公司
  • 上高县城乡规划建设局网站安徽seo
  • wordpress 网站排名优化营销目标分为三个方面
  • 天津市建设管理委员会网站优化服务
  • 旅游网站开发报价单新疆头条今日头条新闻
  • 甘肃网站建设网站优化方案范文
  • 银行网站建设方案视频软文推广文章
  • 平面设计公司属于什么行业厦门seo排名