今天早上看完蘋果對Xcode 9的評價之后,感覺似乎在代碼編輯上做了不少優化,就迫不及待的下載了beta版本。下面我們就來看看官網上說的新特性究竟是怎樣的。
代碼編輯器的滾動
It scrolls at a constantly smooth rate, no matter the files size.
不管文件有多大,滾動都會很平滑。實際操作表明,的確平滑了很多。如果你打開一個大一點的文件,按住下箭頭不放,明顯老版本的Xcode會時不時的卡頓。
代碼樣式
give you greater control over line spacing, multiple font styles, and even the type of cursor.
在Preference
中增加了對行間距和光標樣式的修改。
老版本
新版本
Command + 點擊行為
command-click gesture makes it easy to visualize and select sections of code based on structure.
按住Command點擊方法,類,變量等,交互方式比之前更加清晰。
Issue提示框
Issues have been redesigned to flow nicely with your code with Fix-its are grouped together so you can commit multiple changes in a single click.
錯誤和警告的提示框在界面上做了重新設計,修復操作比之前方便很多。
MarkDown支持
In Markdown files, headings, bold and italic text, links, and other formatting are instantly rendered in the editor as you type. The Jump Bar even understands Markdown structure so you can quickly navigate your README.md and documentation files.
加入了對MarkDown格式的支持。
重構和代碼轉換
新的Xcode提供了新的重構和代碼轉換引擎。當你Command + Click時,Xcode會根據上下文提供對應的重構方式和代碼轉換,轉換引擎是開源的,以后應該會有更多來自其他開發者貢獻的代碼轉換特性。
對Git的支持
Git的管理界面直接以navigator的方式集成到Xcode中,可以方便的對自己的Git Repos進行管理。
遠程調試
想要支持遠程調試,你的手機必須升級到iOS11。升級后,連接手機,進入Devices and Simulators
。
選中
Connect via network
,再拔掉數據線就可以了。注意一定要在一個局域網中。模擬器
支持多個模擬器同時開啟,方便自動化測試。