javascript扩展
I noticed yesterday that some C#, JavaScript and CSS files I had sitting in SkyDrive were suddenly editable.
昨天我注意到,我坐在SkyDrive中的一些C#,JavaScript和CSS文件突然可以编辑。
Not just editable, but there's also autocompletion of strings (not quite intellisense, as it's just one file at a time) and token/symbol recognition.
不仅是可编辑的,而且还具有字符串的自动补全功能(不是很智能,因为一次只有一个文件)和令牌/符号识别。
Plus, this editor looked REALLY familiar to me. I started looking.
另外,这个编辑器对我来说真的很熟悉。 我开始寻找。
I looked over at the Windows Azure Portal, where developers can write node.js to make web services directly in the browser. Here we've got dropbox autocomplete, tooltips with syntax errors and even some basic symbolic refactoring!
我查看了Windows Azure门户,开发人员可以在其中编写node.js来直接在浏览器中制作Web服务。 在这里,我们有保管箱自动完成功能,带有语法错误的工具提示,甚至还有一些基本的符号重构!
Below you can see the editor in Azure Mobile Services throwing a tooltip syntax error. Is this happening on the server?
在下面,您可以看到Azure移动服务中的编辑器抛出工具提示语法错误。 这是在服务器上发生的吗?
Then I remember TypeScript's "playground" online that shows how TypeScript turns into JavaScript. This is split-screen with TypeScript on the left and JavaScript on the right.
然后,我记得在线TypeScript的“游乐场” ,展示了TypeScript如何变成JavaScript。 这是分屏显示,左侧为TypeScript,右侧为JavaScript。
Then I went to look at TFS Online's stuff at http://tfs.visualstudio.com/ where I made an account http://hanselman.visualstudio.com to host private Git repos for side projects.
然后,我去http://tfs.visualstudio.com/看了TFS Online的资料,在那里我注册了一个帐户http://hanselman.visualstudio.com来托管用于副项目的私有Git回购。
Notice that in TFS Online this editor is used for diffs and comparisons, but also includes inline threaded comments! This is all in JavaScript, people.
请注意,在TFS Online中,此编辑器用于差异和比较,还包括内联线程注释! 所有人,这就是JavaScript的全部内容。
I brought up F12 tools just to check.
我调出F12工具只是为了检查。
That's pretty unambiguous. Looking at the CSS by just clicking on editor.main.css. The "vs" in the div's class point to a vs-theme.css that I presume is to set the colors and make the text editor look familiar.
那是很明确的。 通过单击editor.main.css查看CSS。 div类中的“ vs”指向一个vs-theme.css,我认为是要设置颜色并使文本编辑器看起来很熟悉。
Looking in editor.main.js, it's all minified, but it's cool to see.
在editor.main.js中,所有内容都已缩小,但是很酷。
This JavaScript code editor/viewer component is on a TFS site, an Azure site and a SkyDrive site, being used very different divisions across Microsoft. Very cool to see code reuse, but also a good experience replicated. Kudos to the SkyDrive team for recognizing a good thing and putting it into production. It'll be interesting to see where else this editor pops up in the future.
这个JavaScript代码编辑器/查看器组件位于TFS站点,Azure站点和SkyDrive站点上,在整个Microsoft中使用的情况截然不同。 看到代码重用非常酷,而且可以复制很好的经验。 感谢SkyDrive团队认识到一件好事并将其投入生产。 看到这个编辑器将来还会在其他地方弹出会很有趣。
关于斯科特 (About Scott)
Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.
斯科特·汉塞尔曼(Scott Hanselman)是前教授,前金融首席架构师,现在是演讲者,顾问,父亲,糖尿病患者和Microsoft员工。 他是一位失败的单口相声漫画家,一个玉米种植者和一本书的作者。
javascript扩展