Microsoft Launches Visual Studio Code, A Free Cross-Platform Code Editor For OS X, Linux And Windows
相關內容:
@微軟中國MSDN:Visual Studio Code是一個輕量級的Web集成開發環境on Linux,Mac and Windows!連小編的直播室都傳出了驚嘆的掌聲!
TechCrunch: Microsoft Launches Visual Studio Code, A Free Cross-Platform Code Editor For OS X, Linux And Windows
Visual Studio Code Preview Download Page
看來是進擊的atom,首先需要明確,這貨更像是個文本編輯器官方的,How can we improve Microsoft? 裡面對他的期待有一條
"Blue screen of Death" simulation on errors in the IDE
On any error it would be nice to have the good old feeling of windows.
話說回來,打開86M文件毫無壓力啊
作為一個顏控表示真的蠻好看的。。。摘抄官方issue里一些喜聞樂見的期望這個比較逗
Visual Studio for Mac is a breath of fresh air for those of us who use Unity on a daily basis. Please oh please get it tightly integrated, similar to UnityVS for Windows.
The day I can dump MonoDevelop and Xamarin for good would be better than my last 10 birthday presents combined - and they were pretty sweet!
這個和答主想一起了
Please implement the ability to use Code with vi-style keyboard commands. (Preferably as an open-source plugin, as no one ever gets vi-mode quite right in other editors at first.)
After 18 years of using vi and Vim, I simply cannot use non-modal editors anymore. Sim-style keybindings are having something of a renaissance lately, and I"m sure a vi mode in Code would be quite popular. (Just look at VsVim for Visual Studio: VsVim extension )
還有各種要語言Make CMake的
Since not all of us work on web platforms, integrating a CMake build system would be amazing.
「讓你們看看什麼叫專業的。」 看著 Sublime Atom Brackets 此起彼伏得折騰了幾年就叫喧著不要 IDE 只要 Editor ,VS 摸摸 VSC 的頭如是說。
看到Visual Studio Code還是蠻激動的,微軟這兩年來不斷開放的姿態,越來越讓我們看到微軟的情懷和未來。
Visual Studio Code的定位應該還是Editor,一個全功能的Editor,通過Editor反推微軟的SDK,.NET(開源,跨平台)等產品鋪路。
Github atom這個領域最近剛起來的明星是 GItHub的 atom,
Atom is a hackable text editor for the 21st century, built on Electron, and based on everything we love about our favorite editors. We designed it to be deeply customizable, but still approachable using the default configuration.
List of apps and companies using nw.js · nwjs/nw.js Wiki · GitHub這一波浪潮來的優點凶,應該是Node.js + Chromium接下來跨平台應用的一致思路了,也許下面的平台就是Chromium,語言就是JavaScript。拿了下去年2014.Q4的Github語言排名GitHut - Programming Languages and GitHub
Job Trends | Indeed.com
從產品定位來看,Visual Studio Code是要搭配著Visual
Studio Online,後者是微軟近兩年一直發力的雲服務的開發者平台,為的是讓開發者對Windows Azure雲服務有更高粘度,這三個產品完成一個完整的生態圈。
Visual
Studio Code本身就是一個文本編輯器,非常輕量級,搭配各種插件的話,就可以重現Visual Studio的強大功能。(這裡先忽略Visual Studio現有的調試、單元測試等功能,說不定以後會出現這些單品。)現在已經可以進行代碼調試了。使用Visual Studio Code可以只關注代碼開發方面,尤其前端開發或者腳本語言開發更為方便。可以理解這為第一步。
第二步就把開發完的代碼即使放到Visual Studio Online平台,雲端服務進行編譯和、部署和測試。這樣,僅使用Visual
Studio Code進行開發,這對於開發的機器要求大大降低。當然Visual Studio Online還有項目管理、版本管理等其他功能。
第三步,在Visual Studio Online上的代碼,可以直接部署到Windows Azure雲服務上。
刪除了notepad++,並將所有文本文件關聯在了code上。第一版本就這麼給力,後續版本私鑰sublime和atom去死么。以後別收費才好。建議捆綁在VS上,(逃展望:集成vim快捷鍵插件,like vim on VS。集成所見即所得編輯環境。進一步提高debug的靈活性,做web開發界的VS。在此前提下流暢性不要損失太大就好。
還有些功能沒研究出來,比如我很喜歡的continue to this line,當然也可以用斷點解決這個問題。不能像Win上的Visual Studio那樣附加進程調試運行在IE裡面的JavaScript,不過話說用Chrome調試頁面的話效率還是很高的,Mac上也不想調試IE什麼的事情了。但是依然希望後面能把Chrome的遠程調試也整合進來,這樣在做網站的時候就不需要一會兒在Chrome里調試頁面,一會兒又在VSC里調試node那麼人格分裂了。
一大早某同學蹦蹦跳跳進實驗室對我說:「XXX,你看昨晚微軟build 2015了嗎?以後可以把Android、IOS軟體的代碼直接轉換成Windows Phone應用了(省略一萬字),還有個Visual Studio Code,居然是跨平台的(省略一萬字)」雖然多年只在Linux裡面用Vim寫代碼寫論文,但真心不是排斥微軟的Linux腦殘粉,手裡用著Lumia還在期待下一代旗艦呢哈哈哈~~~隨手一搜,發現Arch的AUR里已經有人寫了PKGBUILD文件,於是迫不及待裝上。。。下面是詳細過程:
Visual Studio Code and http://ASP.NET 5 are in preview and at this time debugging is not supported on OS X and Linux. Rest assured, we are working hard to bring these experiences to you in the near future.
當下還是老實用Xamarin吧。
萬萬沒想到 Visual Studio Code 會基於 Electron (Atom-Shell) 來做. 正巧我們也是 Electron (Atom-Shell) 的重度用戶, 大概一年前就一直基於 Electron 開發 http://fireball-x.com/, 對微軟改造 Electron 的能力充滿好奇, 所以就去挖他的源碼來看了, 找到 app/ 文件夾, root 目錄下的就是 main process 部分, client 目錄下是 page 層. 先來看看 main process 的思路吧:
Core 層
1. 圍觀一下 menu 的處理, 畢竟 Electron 里 Menu 用的是 Chromium 的 menu API, 坑多難用, 不經過細心改造很難做完美. 讀了下 app/menu.js. 只能說處理段位不高, 動態添加/刪除 Menu Item 的思路不夠優雅. menu item 處理 ipc 的思路不佳.