拖动选定的文本来移动它? [英] Drag selected text to move it?
本文介绍了拖动选定的文本来移动它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以拖动选定的文本来移动它?这几乎在所有其他编辑器中都有(更不用说浏览器中的文本输入字段了.)我很惊讶在 VS Code 中没有找到它.
Is it possible to drag selected text to move it? This is in almost every other editor (not to mention text input fields in browsers.) I was surprised not to find it in VS Code.
这是一个 gif 示例.
推荐答案
从 2017 年 2 月版本 (1.10.1) 开始支持此功能,但默认情况下处于禁用状态.
This is now supported as of Feb 2017 release (1.10.1) but it is disabled by default.
要启用它:转到 File >首选项设置
并添加这一行 "editor.dragAndDrop": true
To enable it: Go to File > Preferences > Settings
and add this line "editor.dragAndDrop": true
来源:https://code.visualstudio.com/updates/v1_10#_preview-drag-and-drop-selected-text
这篇关于拖动选定的文本来移动它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文