Last active
March 27, 2016 03:34
-
-
Save larryhou/219f02e5f12264db0c68 to your computer and use it in GitHub Desktop.
Backup MonoDevelop code formatting style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Policies> | |
<PolicySet name="Default" id="Default"> | |
<TextStylePolicy inheritsSet="null" scope="text/x-csharp"/> | |
<CSharpFormattingPolicy inheritsSet="Mono" inheritsScope="text/x-csharp" scope="text/x-csharp"> | |
<IndentSwitchBody>True</IndentSwitchBody> | |
<AnonymousMethodBraceStyle>NextLine</AnonymousMethodBraceStyle> | |
<PropertyBraceStyle>NextLine</PropertyBraceStyle> | |
<PropertyGetBraceStyle>NextLine</PropertyGetBraceStyle> | |
<PropertySetBraceStyle>NextLine</PropertySetBraceStyle> | |
<EventBraceStyle>NextLine</EventBraceStyle> | |
<EventAddBraceStyle>NextLine</EventAddBraceStyle> | |
<EventRemoveBraceStyle>NextLine</EventRemoveBraceStyle> | |
<StatementBraceStyle>NextLine</StatementBraceStyle> | |
<ElseNewLinePlacement>NewLine</ElseNewLinePlacement> | |
<ElseIfNewLinePlacement>NewLine</ElseIfNewLinePlacement> | |
<CatchNewLinePlacement>NewLine</CatchNewLinePlacement> | |
<FinallyNewLinePlacement>NewLine</FinallyNewLinePlacement> | |
<WhileNewLinePlacement>NewLine</WhileNewLinePlacement> | |
<BeforeMethodDeclarationParentheses>False</BeforeMethodDeclarationParentheses> | |
<BeforeMethodCallParentheses>False</BeforeMethodCallParentheses> | |
<BeforeConstructorDeclarationParentheses>False</BeforeConstructorDeclarationParentheses> | |
<NewLineBeforeConstructorInitializerColon>SameLine</NewLineBeforeConstructorInitializerColon> | |
<NewLineAfterConstructorInitializerColon>SameLine</NewLineAfterConstructorInitializerColon> | |
<BeforeIndexerDeclarationBracket>False</BeforeIndexerDeclarationBracket> | |
<BeforeDelegateDeclarationParentheses>False</BeforeDelegateDeclarationParentheses> | |
<AfterDelegateDeclarationParameterComma>True</AfterDelegateDeclarationParameterComma> | |
<NewParentheses>False</NewParentheses> | |
<IfParentheses>False</IfParentheses> | |
<WhileParentheses>False</WhileParentheses> | |
<ForParentheses>False</ForParentheses> | |
<ForeachParentheses>False</ForeachParentheses> | |
<CatchParentheses>False</CatchParentheses> | |
<SwitchParentheses>False</SwitchParentheses> | |
<LockParentheses>False</LockParentheses> | |
<UsingParentheses>False</UsingParentheses> | |
<SpacesBeforeBrackets>False</SpacesBeforeBrackets> | |
</CSharpFormattingPolicy> | |
</PolicySet> | |
</Policies> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MONO_CFG_DIR=$(find ~/Library -maxdepth 1 -type d -iname 'MonoDevelop*' | tail -n 1) | |
echo -e '\n# SRC' | |
tree -a ${MONO_CFG_DIR} | |
echo -e '\n# BAK' | |
rsync -avzc --progress ${MONO_CFG_DIR} . | |
echo -e '\n# DST' | |
DST_DIR=${PWD}/$(echo ${MONO_CFG_DIR} | awk -F'/' '{print $NF}') | |
tree -a ${DST_DIR} | |
FMT_CFG_FILE=${DST_DIR}/Policies/Default.mdpolicy.xml | |
echo -e "\n# ${FMT_CFG_FILE}" | |
export XMLLINT_INDENT=$'\t' | |
cat ${FMT_CFG_FILE} | xmllint --format - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment