Diff
checker
文本
文本
图像
文档
Excel
文件夹
Legal
Enterprise
桌面版
定价
登录
下载 Diffchecker 桌面版
比较文本
查找两个文本文件之间的差异
工具
历史
实时编辑器
折叠未更改行
关闭换行
视图
拆分
统一
比对精度
智能
单词
字符
语法高亮
选择语法
忽略
文本转换
转到第一个差异
编辑输入
Diffchecker Desktop
运行Diffchecker最安全的方式。获取Diffchecker桌面应用:您的差异永远不会离开您的电脑!
获取桌面版
Devcontainer.json diff
创建于
3年前
差异永不过期
清除
导出
分享
解释
36 删除
行
总计
删除
字符
总计
删除
要继续使用此功能,请升级到
Diff
checker
Pro
查看价格
53 行
全部复制
51 添加
行
总计
添加
字符
总计
添加
要继续使用此功能,请升级到
Diff
checker
Pro
查看价格
68 行
全部复制
复制
已复制
复制
已复制
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose
{
{
复制
已复制
复制
已复制
"name": "
azure_flask_postgres_flexible_appservice
",
"name": "
django-quiz-app
",
// Update the 'dockerComposeFile' list if you have more compose files or use different names.
"dockerComposeFile":
"
docker-compose.yml",
// The .devcontainer/docker-compose.yml file contains any overrides you need/want to make.
"dockerComposeFile":
[
"../
docker-compose.yml",
"docker-compose_dev.yml" // Overwrites portions of the prod compose file
],
// The 'service' property is the name of the service for the container that VS Code should
// use. Update this value and .devcontainer/docker-compose.yml to the real service name.
"service": "app",
"service": "app",
复制
已复制
复制
已复制
"shutdownAction": "stopCompose",
"workspaceFolder": "/workspace",
"workspaceFolder": "/workspace",
复制
已复制
复制
已复制
"features": {
"ghcr.io/azure/azure-dev/azd:latest": {}
},
"forwardPorts": [8000, 5432],
"forwardPorts": [8000, 5432],
"portsAttributes": {
"portsAttributes": {
复制
已复制
复制
已复制
"8000": {"label": "
frontend web
port", "onAutoForward": "notify"},
"8000": {"label": "
Django
port", "onAutoForward": "notify"},
"5432": {"label": "PostgreSQL port", "onAutoForward": "silent"}
"5432": {"label": "PostgreSQL port", "onAutoForward": "silent"}
},
},
复制
已复制
复制
已复制
// Configure tool-specific properties.
"customizations": {
"customizations": {
复制
已复制
复制
已复制
// Configure properties specific to VS Code.
"vscode": {
"vscode": {
复制
已复制
复制
已复制
"extensions": [
// Set *default* container specific settings.json values on container create.
"ms-azuretools.vscode-bicep",
"charliermarsh.ruff",
"ms-python.python",
"ms-python.black-formatter",
"microsoft.bicep",
"bierner.github-markdown-preview",
"ms-azuretools.vscode-docker",
"mtxr.sqltools",
"mtxr.sqltools-driver-pg"
],
"settings": {
"settings": {
"sqltools.connections": [
"sqltools.connections": [
{
{
复制
已复制
复制
已复制
"name": "
Local
database",
"name": "
Container
database",
"driver": "PostgreSQL",
"driver": "PostgreSQL",
复制
已复制
复制
已复制
"server": "
db
",
"previewLimit": 50,
"server": "
localhost
",
"port": 5432,
"port": 5432,
复制
已复制
复制
已复制
"database": "
relecloud
",
"database": "
app
",
"username": "
postgres
",
"username": "
app_user
",
"password": "
postgres"
"password": "
app_password"
}
]
}
}
复制
已复制
复制
已复制
],
"taskExplorer.enabledTasks": {"python": false},
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.linting.enabled": true,
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
"[python]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"editor.defaultFormatter": "ms-python.black-formatter"
},
"python.formatting.provider": "black",
"files.exclude": {
"**/*.coverage": true,
".ruff_cache": true,
".pytest_cache": true
}
}
},
},
复制
已复制
复制
已复制
"features": {
// Add the IDs of extensions you want installed when the container is created.
"ghcr.io/azure/azure-dev/azd:latest": {},
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.black-formatter",
"charliermarsh.ruff",
"ms-azuretools.vscode-bicep",
"mtxr.sqltools",
"mtxr.sqltools-driver-pg",
"spmeesseman.vscode-taskexplorer"
]
}
},
},
复制
已复制
复制
已复制
"postCreateCommand": "pip install -
e src && python3 -m flask --app src/flaskapp db upgrade --directory src/flaskapp/migrations && python3 -m flask --app src/flaskapp seed --filename src/seed_data.json"
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pip install -
r requirements-dev.txt && pre-commit install",
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}
}
已保存差异
原始文本
打开文件
// For format details, see https://aka.ms/devcontainer.json. For config options, see the // README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose { "name": "azure_flask_postgres_flexible_appservice", // Update the 'dockerComposeFile' list if you have more compose files or use different names. // The .devcontainer/docker-compose.yml file contains any overrides you need/want to make. "dockerComposeFile": [ "../docker-compose.yml", "docker-compose_dev.yml" // Overwrites portions of the prod compose file ], // The 'service' property is the name of the service for the container that VS Code should // use. Update this value and .devcontainer/docker-compose.yml to the real service name. "service": "app", "shutdownAction": "stopCompose", "workspaceFolder": "/workspace", "forwardPorts": [8000, 5432], "portsAttributes": { "8000": {"label": "frontend web port", "onAutoForward": "notify"}, "5432": {"label": "PostgreSQL port", "onAutoForward": "silent"} }, "customizations": { "vscode": { "extensions": [ "ms-azuretools.vscode-bicep", "charliermarsh.ruff", "ms-python.python", "ms-python.black-formatter", "microsoft.bicep", "bierner.github-markdown-preview", "ms-azuretools.vscode-docker", "mtxr.sqltools", "mtxr.sqltools-driver-pg" ], "settings": { "sqltools.connections": [ { "name": "Local database", "driver": "PostgreSQL", "server": "db", "port": 5432, "database": "relecloud", "username": "postgres", "password": "postgres" } ] } } }, "features": { "ghcr.io/azure/azure-dev/azd:latest": {}, }, "postCreateCommand": "pip install -e src && python3 -m flask --app src/flaskapp db upgrade --directory src/flaskapp/migrations && python3 -m flask --app src/flaskapp seed --filename src/seed_data.json" }
更改后文本
打开文件
{ "name": "django-quiz-app", "dockerComposeFile": "docker-compose.yml", "service": "app", "workspaceFolder": "/workspace", "features": { "ghcr.io/azure/azure-dev/azd:latest": {} }, "forwardPorts": [8000, 5432], "portsAttributes": { "8000": {"label": "Django port", "onAutoForward": "notify"}, "5432": {"label": "PostgreSQL port", "onAutoForward": "silent"} }, // Configure tool-specific properties. "customizations": { // Configure properties specific to VS Code. "vscode": { // Set *default* container specific settings.json values on container create. "settings": { "sqltools.connections": [ { "name": "Container database", "driver": "PostgreSQL", "previewLimit": 50, "server": "localhost", "port": 5432, "database": "app", "username": "app_user", "password": "app_password" } ], "taskExplorer.enabledTasks": {"python": false}, "python.defaultInterpreterPath": "/usr/local/bin/python", "python.linting.enabled": true, "python.testing.pytestEnabled": true, "python.testing.unittestEnabled": false, "[python]": { "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.fixAll": true }, "editor.defaultFormatter": "ms-python.black-formatter" }, "python.formatting.provider": "black", "files.exclude": { "**/*.coverage": true, ".ruff_cache": true, ".pytest_cache": true } }, // Add the IDs of extensions you want installed when the container is created. "extensions": [ "ms-python.python", "ms-python.vscode-pylance", "ms-python.black-formatter", "charliermarsh.ruff", "ms-azuretools.vscode-bicep", "mtxr.sqltools", "mtxr.sqltools-driver-pg", "spmeesseman.vscode-taskexplorer" ] } }, // Use 'postCreateCommand' to run commands after the container is created. "postCreateCommand": "pip install -r requirements-dev.txt && pre-commit install", // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode" }
查找差异