在Sublime Text中是否可以为Dockerfile获取语法高亮?
在Sublime Text中是否可以为Dockerfile获取语法高亮?
当然可以,通过从Package Control安装此软件包:
适用于Mac
Press cmd(⌘)-shift-p and type "add repo".
Then paste in the GitHub address for this package:
https://github.com/jaytaylor/Dockerfile.sublime-syntax
Press cmd(⌘)-shift-p and type "install".
Enter "Dockerfile.sublime-syntax" and press enter.
适用于 Windows
the same just replace cmd(⌘) with Ctrl
Now you're all set! Enjoy!
按下 command + shift + p 打开“命令面板” (链接)。
搜索: package control: install package (如果你还没有安装它,你需要先安装)
接着搜索: dockerfile syntax highlighting
关闭并重新打开Dockerfile文件,它将会进行语法高亮。
针对 Mac,Sublime Text 编辑器的 Dockerfile 扩展:
步骤:
lower_case_table_names
配置附加到mysql命令中。mysql:
image: mysql:8
container_name: shiftmonitor_mysql
command: mysqld --lower_case_table_names=0
它有效。