visual-studio-code - 在 Visual Studio 代码中格式化 Scala 文件

标签 visual-studio-code

我正在处理一个遗留代码库,有人将选项卡配置为 3 个空格并保存了文件。

我想重新格式化文件,以便每个文件缩进 4 个空格。

VSCode 能做到吗?当我选择文件内容并从编辑菜单中选择格式时,它说 .scala 文件没有代码格式化程序

最佳答案

接受的答案是 已弃用 !见 vscode-scalafmt .
使用 Metals 反而。

关于visual-studio-code - 在 Visual Studio 代码中格式化 Scala 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49834297/

相关文章:

node.js - 安装 Node.js 后出现 npm 错误 : Cannot find module 'es6-promisify'

html - Live Sass 编译器在最新的 VSCode 后导致扩展主机崩溃

git - 如何更改 vscode 中的 github 用户以推送到我的第二个帐户?

json - Sublime Text 3插件获取JSON路径

visual-studio-code - 有没有办法从 VS Code 中的扩展程序打开工作区?

angular - 不能将 'NgElementConstructor<unknown>'类型的参数分配给 'CustomElementConstructor'类型的参数

visual-c++ - Visual Studio代码-无法打开源文件 "iostream"

visual-studio-code - 配置 VSCode 包含路径

python - 当前在 VS Code 中运行 Python 的快捷方式

git - 在 VS Code 中自动将 Jira 问题编号添加到 git commit 消息