我在 M1 MacBook 上。这是我尝试安装 Homebrew 时的错误:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Homebrew is not (yet) supported on ARM processors!
Rerun the Homebrew installer under Rosetta 2.
If you really know what you are doing and are prepared for a very broken experience you can use another installation option for installing on ARM:
https://docs.brew.sh/Installation
Run Code Online (Sandbox Code Playgroud)
那么我如何“在 Rosetta 2 下重新运行 Homebrew 安装程序”?
问题:
{% extends 'base.html' %} {% block title %} Dashboard {% endblock %} {% block pagetitle %}
Run Code Online (Sandbox Code Playgroud)
变成
{% extends 'base.html' %} {% block title %} Dashboard {% endblock %} {% block
pagetitle %}
Run Code Online (Sandbox Code Playgroud)
请注意,它{% tag %}被换行了。这会导致 django 模板出现语法错误。
我已经尝试了大多数顶级 django 模板扩展,但这并不能解决问题。
我也尝试过这些设置:
"[html]": {
"editor.formatOnSave": false,
},
"html.format.wrapLineLength": 0,
"html.format.enable": false,
"prettier.disableLanguages": ["html"]
Run Code Online (Sandbox Code Playgroud)
期望的行为: