原文链接:you can drag and drop code to a new location? 用鼠标左键选中你想要移动的代码,然后拖到新的位置即可,如果你想要复制此代码,请按住Ctrl键。 你也可以拖动代码到不同的文件,拖动代码到文件的tab,编辑器会自动切换。