Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy CodeNew to Visual Studio Code? Get it now.
Copy Code

Copy Code

GanceGuo

|
675 installs
| (1) | Free
sync lines from other file.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

copycode README

在*.ts文件里,包含一个外部代码片段。 Main.ts

    function Start(){

	//<CopyCode>start</CopyCode>
	 let shape0=new egret.Shape();
	shape0.name="shape0";
	//...
	//<CopyCode>E:\ycs.txt</CopyCode>
	
	this.addChild(shape0);
	shape0.x=100;
	shape0.y=100;

	}

E:\ycs.txt

	//<CopyCode>start</CopyCode>
	let shape0=new egret.Shape();
	shape0.name="shape0";
	//...
	//<CopyCode>E:\ycs.txt</CopyCode>

Copy code from other file. Language :typescript

Features

Include the source code from the other file.

Requirements

the plugin is only for *.ts file.

Extension Settings

None

Known Issues

None

Release Notes

Users appreciate release notes as you update your extension.

0.2.0

Initial release

0.3.0

auto remove utf-8 BOM code in windows.

0.4.0

bugfix

0.5.0

支持自动配置课件工程

0.6.4

bugfix for 白鹭工程

0.6.5

修改网络问题导致的文件错误

0.6.6

自动修改Main.ts模板和index.html

0.6.7

增加default.res.json 文件的zh-CN配置

0.6.8

default.res.json bugfix

0.7.0

去掉jszip

For more information

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft