visual-studio-code - VSCode对vim的ci的快捷命令是什么
VSCode 有办法在标签之间进行选择吗?而且我的意思不仅仅是折叠和取消折叠,我的意思是选择开始标签和结束标签之间的所有内容。
VSCode 有办法在标签之间进行选择吗?而且我的意思不仅仅是折叠和取消折叠,我的意思是选择开始标签和结束标签之间的所有内容。
问题描述
VSCode 有办法在标签之间进行选择吗?而且我的意思不仅仅是折叠和取消折叠,我的意思是选择开始标签和结束标签之间的所有内容。
查看下面的代码片段,这是一个.net示例:</p>
[ClientSampleMethod]
public WorkItem AddAttachment()
{
int id = Convert.ToInt32(Context.GetValue<WorkItem>("$newWorkItem3").Id);
string filePath = ClientSampleHelpers.GetSampleTextFile();
VssConnection connection = Context.Connection;
WorkItemTrackingHttpClient workItemTrackingClient = connection.GetClient<WorkItemTrackingHttpClient>();
// upload attachment to store and get a reference to that file
AttachmentReference attachmentReference = workItemTrackingClient.CreateAttachmentAsync(filePath).Result;
JsonPatchDocument patchDocument = new JsonPatchDocument();
patchDocument.Add(
new JsonPatchOperation()
{
Operation = Operation.Test,
Path = "/rev",
Value = "1"
}
);
patchDocument.Add(
new JsonPatchOperation()
{
Operation = Operation.Add,
Path = "/fields/System.History",
Value = "Adding the necessary spec"
}
);
patchDocument.Add(
new JsonPatchOperation()
{
Operation = Operation.Add,
Path = "/relations/-",
Value = new
{
rel = "AttachedFile",
url = attachmentReference.Url,
attributes = new { comment = "VanDelay Industries - Spec" }
}
}
);
WorkItem result = workItemTrackingClient.UpdateWorkItemAsync(patchDocument, id).Result;
return result;
}
您可以在以下链接中获得更多示例:
如果你想使用 REST api,你可以参考附件 - 创建api:
POST https://dev.azure.com/{organization}/{project}/_apis/wit/attachments?fileName={fileName}&uploadType={uploadType}&areaPath={areaPath}&api-version=6.0
解决方案
我通过安装 Emmet Keybindings 扩展解决了这个问题: editor.emmet.action.balanceOutward editor.emmet.action.balanceInward
推荐阅读
- image - Safari、Chrome 和 Firefox 中的不同图像渲染
- ios - 替换Realm数据库文件并使新数据库对watchOS生效
- c# - 无法通过 XElement 创建名称中带有冒号的 XML 标记
- swiper - 在新版本的 Swiper Slider 中设置两个滑块之间的连接
- eclipse - 这个图标在 Eclipse Project Explorer 中是什么意思(带有向上箭头的数字)?
- diff - 如何删除 cvs 中的补丁差异
- vb.net - 未为类型“整数”和类型“dbnull”定义运算符“+”
- mysql - MySQL 问题:使用了不到 80% 的查询缓存
- javascript - mapDispatchToProps、调度和 axios
- primeng - PrimeNG Treetable 添加节点问题