国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

Xcode插件及快捷鍵(三)——Xcode 8 插件

2019-11-09 14:33:54
字體:
來源:轉載
供稿:網友

Xcode常用插件及快捷鍵(三)——Xcode 8 插件

蘋果為了避免類似 Xcode Ghost 事件的再次發生,Xcode8 禁用了插件機制,而開放了另一種形式:Source Editor extensions,但是這種形式局限性太大。本文介紹Xcode 8 繼續使用插件。

Tips:使用之前請先備份Xcode,安裝插件后不可打包上傳Appstore,使用請謹慎!

恢復Xcode 8 插件

原Xcode 插件安裝目錄

tips:如果遇到插件引起Xcode crash的情況,可在改目錄下刪除對應插件

~/Library/application/ Support/Developer/Shared/Xcode/Plug-ins
刪除所有原插件cd ~/Library/Application/ Support/Developer/Shared/Xcode/Plug-inrm -rf ../Plug-ins

對Xcode進行重簽名

鑰匙串訪問 -> 證書助理 -> 創建證書 名稱:XcodeSigner 身份類型:自簽名根證書 證書類型:代碼簽名

期間允許所有權限

sudo codesign -f -s XcodeSigner /Applications/Xcode.app
安裝Alcatrazcurl -fsSL https://raw.github.com/alcatraz/Alcatraz/master/Scripts/install.sh | sh
修改UUIDfind ~/Library/Application/ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add 'defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID'

重啟Xcode,選擇 load bundles

通過 Alcatraz 安裝插件后,重啟Xcode不出現 load bundles 提示框,執行“修改UUID”,再重啟Xcode。 某些插件無法通過Alcatraz安裝,可直接通過github下載打開。


插件

大部分插件還是能夠正常使用,以下列舉若干。


AdjustFontSize

快捷鍵:? + 或者 ? -

A simple plugin for Xcode to adjust font size without going into Settings → Fonts & Colors and changing each source type. Simply hit ? + or ? - and all fonts will be adjusted. Plugin respects different font sizes per each syntax type.


AllTargets

AllTargets is a plugin for Xcode. The plugin intends to auto select targets depending of the selected configuration when you add files to the PRoject.


AMMethod2Implement

快捷鍵:Ctrl+A

A simple Xcode plugin to generate implement code for the selected method, selector and const string, currently, only support objective-c.


AtAutoCompletion(無效)

Xcode plugin for fixing bug in Xcode 6+: if you input “@”, auto completion does not work, you still need to press “ESC” to show the auto completion list.


ATProperty

This is a convenient and fast approach to create property. You do not need to type @property and nonatomic when you declare a property.


Auto-Importer-for-Xcode(無效)

快捷鍵:? + ctrl + H

Quickly import your headers on the fly without having to manually go to the top of your file and type the import statement.


Xcode-CComment

Xcode plugin for C Style Comment(uncomment) /**/


CleanHeaders-Xcode

快捷鍵:command+|

An Xcode plug-in to format your import headers in a systematic manner. It simply removes duplicates, spaces and sorts them alphabetically making it much more easier to read and avoid duplicate imports. Works with @imports, #include, #import and import.


ColorSenseRainbow(無效)

A plugin for Xcode that shows colours and allows you to modify them. It works for both UIColor and NSColor in Swift and Objective-C.


GitDiff(Xcode自帶更好)

With thanks to the genius who suggested this plugin, GitDiff displays deltas against a git repo in the Xcode source editor once you’ve saved the file. To use, copy this repo to your machine, build it and restart Xcode. Differences should then be highlighted in orange for lines that have been modified and blue for new code. A red line indicates code has been removed. Hover over deleted/modified line number to see original source and after a second a button will appear allowing you to revert the change.


HHEnumeration-Xcode(無效)

This plugin is used to autocompletion enum members for Objective-C


HighlightSelectedString

Highlight the String which is same to selected string.


injectionforxcode

快捷鍵:ctrl+=

Injection for Xcode is an Xcode plugin (available via Alcatraz) or AppCode that dynamically inserts new Swift / Objective-C code into a running app in order to speed up your build process. It does this without making any changes to your project.


IntelliPaste-for-Xcode

快捷鍵:Shift+Cmd+V

IntelliPaste is an Xcode plugin that makes copy-pasting methods and RGB colors easier.


KSHObjcUML

快捷鍵:Select Product->Objc-UML or Swift-UML

KSHObjcUML can show oriented graph of dependencies between Objective-C and Swift classes in your project. This plugin is based on objc-dependency-visualizer.


KSImageNamed-Xcode

Can’t remember whether that image you just added to the project was called button-separator-left or button-left-separator? Now you don’t have to, because this will autocomplete your imageNamed: calls like you’d expect. Just type in [NSImage imageNamed: or [UIImage imageNamed: and all the images in your project will conveniently appear in the autocomplete menu. You’ll even get a handy preview of the image you’re about to select.


SCXcodeSwitchExpander(無效)

SCXcodeSwitchExpander is a small Xcode plugin that expands switch statements by inserting missing cases.


VVDocumenter-Xcode

快捷鍵:///

Writing documentation is so important for developing, but it is really painful with Xcode. Think about how much time you are wasting in pressing ‘*’ or ‘/’, and typing the parameters again and again. Now, you can find the method (or any code) you want to document to, and type in ///, the document will be generated for you and all params and return will be extracted into a javadoc style, which is compatible with appledoc, Doxygen and HeaderDoc. You can just fill the inline placeholder tokens to finish your document.


XAlign(無效)

快捷鍵:Shift+Cmd+X

An amazing Xcode plugin to align regular code. It can align anything by using custom alignment patterns.


摘錄:

http://www.cnblogs.com/shidaying/p/6232254.html


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 德江县| 日土县| 平塘县| 汤原县| 巴青县| 红桥区| 宝兴县| 阜康市| 抚松县| 阳东县| 津南区| 贵定县| 平阳县| 淮南市| 蒙山县| 衡山县| 那坡县| 揭阳市| 广平县| 永善县| 兰考县| 汉中市| 武城县| 密云县| 临沭县| 祥云县| 秦皇岛市| 闽清县| 两当县| 乡城县| 定西市| 叙永县| 个旧市| 当涂县| 平陆县| 塔河县| 公安县| 陇川县| 成都市| 沽源县| 沙田区|