XCode Clang格式扩展不工作XCode 12.3 MacOS Big Sur

XCode Clang格式扩展不工作XCode 12.3 MacOS Big Sur,xcode,xcode12,clang-format,macos-big-sur,Xcode,Xcode12,Clang Format,Macos Big Sur,我升级到mac os big-sur和XCode 12.3。之前我使用XCODERangangFrand扩展来格式化我的C++文件。但是现在这个扩展没有得到认可。当我打开扩展时,在编辑器菜单的XCode中看不到它。我已经检查过XCode编辑器的系统首选项->扩展选项中是否启用了XCodeClangFormat扩展 还有其他人面临这个问题吗?你能提出一个解决方案吗。感谢您的帮助我有Xcode 12.4,源代码格式化程序似乎是一款定价产品。如果您单击Xcode->Xcode Extensions,它

我升级到mac os big-sur和XCode 12.3。之前我使用XCODERangangFrand扩展来格式化我的C++文件。但是现在这个扩展没有得到认可。当我打开扩展时,在编辑器菜单的XCode中看不到它。我已经检查过XCode编辑器的系统首选项->扩展选项中是否启用了XCodeClangFormat扩展


还有其他人面临这个问题吗?你能提出一个解决方案吗。感谢您的帮助

我有Xcode 12.4,源代码格式化程序似乎是一款定价产品。如果您单击Xcode->Xcode Extensions,它会将您带到应用商店。在那里,您可以找到定价为269卢比的Xformat。坦白地说,我没有尝试使用这个。我最喜欢的是astyle,因为我的Linux时代可以追溯到二十多年前。

我有Xcode 12.4,而源代码格式化程序似乎是一个定价产品。如果您单击Xcode->Xcode Extensions,它会将您带到应用商店。在那里,您可以找到定价为269卢比的Xformat。坦白地说,我没有尝试使用这个。我最喜欢的是astyle,因为我的Linux时代可以追溯到二十多年前。扩展似乎不再运行。但这一点也不坏。从不久前开始,我就开始使用一个脚本,在我提交之前重新格式化我的整个项目

我只需要安装自制软件,这样我就可以通过
brew install clang format
下载clang format(参考:)

它通过双击运行,我还将其集成到我的git提交/拉/推脚本中

#!/bin/sh

cd `dirname $0`

if [ -z $(which clang-format) ] ; then
  echo "clang-format not found."
  echo "Install Homebrew, then:"
  echo "brew install clang-format"
  echo ""
  echo "Aborting."
  exit
fi

find . -name *.[h,m] | while read _fmt_f; do
clang-format -i --style=file $_fmt_f
done;
#!/bin/sh

cd `dirname $0`

# find files
find . -name *.h > _fmt_files.txt
find . -name *.m >> _fmt_files.txt

# run formatter
while read _fmt_f; do
clang-format -i --style=file $_fmt_f
done <_fmt_files.txt

# make clean
rm _fmt_files.txt

#!/bin/sh

cd `dirname $0`

if [ -z $(which clang-format) ] ; then
  echo "clang-format not found."
  echo "Install Homebrew, then:"
  echo "brew install clang-format"
  echo ""
  echo "Aborting."
  exit
fi

find . -name *.[h,m] | while read _fmt_f; do
clang-format -i --style=file $_fmt_f
done;
#!/bin/sh

cd `dirname $0`

# find files
find . -name *.h > _fmt_files.txt
find . -name *.m >> _fmt_files.txt

# run formatter
while read _fmt_f; do
clang-format -i --style=file $_fmt_f
done <_fmt_files.txt

# make clean
rm _fmt_files.txt
#/垃圾箱/垃圾箱
cd`dirname$0`
#查找文件
找到-名称*.h>\u fmt\u files.txt
找到-名称*.m>>\u fmt\u files.txt
#运行格式化程序
读时(fmt),;做
铿锵格式-i--style=file$\u fmt\u f

这里也一样。扩展似乎不再运行。但这一点也不坏。从不久前开始,我就开始使用一个脚本,在我提交之前重新格式化我的整个项目

我只需要安装自制软件,这样我就可以通过
brew install clang format
下载clang format(参考:)

它通过双击运行,我还将其集成到我的git提交/拉/推脚本中

#!/bin/sh

cd `dirname $0`

if [ -z $(which clang-format) ] ; then
  echo "clang-format not found."
  echo "Install Homebrew, then:"
  echo "brew install clang-format"
  echo ""
  echo "Aborting."
  exit
fi

find . -name *.[h,m] | while read _fmt_f; do
clang-format -i --style=file $_fmt_f
done;
#!/bin/sh

cd `dirname $0`

# find files
find . -name *.h > _fmt_files.txt
find . -name *.m >> _fmt_files.txt

# run formatter
while read _fmt_f; do
clang-format -i --style=file $_fmt_f
done <_fmt_files.txt

# make clean
rm _fmt_files.txt

#!/bin/sh

cd `dirname $0`

if [ -z $(which clang-format) ] ; then
  echo "clang-format not found."
  echo "Install Homebrew, then:"
  echo "brew install clang-format"
  echo ""
  echo "Aborting."
  exit
fi

find . -name *.[h,m] | while read _fmt_f; do
clang-format -i --style=file $_fmt_f
done;
#!/bin/sh

cd `dirname $0`

# find files
find . -name *.h > _fmt_files.txt
find . -name *.m >> _fmt_files.txt

# run formatter
while read _fmt_f; do
clang-format -i --style=file $_fmt_f
done <_fmt_files.txt

# make clean
rm _fmt_files.txt
#/垃圾箱/垃圾箱
cd`dirname$0`
#查找文件
找到-名称*.h>\u fmt\u files.txt
找到-名称*.m>>\u fmt\u files.txt
#运行格式化程序
读时(fmt),;做
铿锵格式-i--style=file$\u fmt\u f

你试过重命名Xcode了吗?这显然是他们Github页面上的一个解决方案。。你能提供解决方案的链接吗。我不明白你重命名Xcode是什么意思?你试过重命名Xcode吗?这显然是他们Github页面上的一个解决方案。。你能提供解决方案的链接吗。我不明白你重命名Xcode是什么意思?