JetBrains Rider是一款快速強大的 C#編輯器 ,用於在Windows、Mac和Linux上進行Unity開發。 以無與倫比的2500多項智能代碼檢查和重構,Rider增強您的C#體驗,使您更加迅速編寫零誤差的代碼。
Unity輕鬆開始
Rider有內置的Unity支持,當你初次打開Unity解決方案時 它會自動將Unity配置為使用Rider 作為默認的C#腳本和shader 文件編輯器。 完成設置後,之後雙擊C#腳本或shader資產,即可在Rider中打開解決方案。
控制Unity編輯器
由於集成的雙向通信,無需離開Rider,您即可切換進出Play模式,暫停,和逐幀執行! 工具條包含遊戲視圖按鈕Play、Pause和Step,分別對應Unity Editor中的相同按鈕,並且與Unity Editor中的按鈕控制相同的行為操作。 狀態欄上的Unity小圖標將顯示Unity Editor是否已經連接,正在刷新或在Play模式。 在Rider處於Edit模式下的任何變更都將立刻提交Unity Editor。
運行Unity測試
Rider允許您運行與Unity的API交互的測試,可以逐幀執行,一切操作都在Rider中。 當然,您還可以查看Unity專用測試的結果,就像普通的測試一樣 – 您可以按結果篩選,並且點擊跟蹤堆棧,從而在代碼中導航。
Unity控制台日誌
Unity Logs工具窗口有指向跟蹤堆棧的鏈接,使您可以瀏覽相同的事件(錯誤、警告或消息),根據Unity編輯器控制台中記錄日誌的時間來隱藏事件。 它允許按分類篩選(在Play或Edit模式),並讓您輕鬆導航到日誌記錄中提到的任何源文件、類、方法,或屬性。 Unity Logs在每次切換到Play模式後自動清空其輸出。
代碼提示
Rider提供一流的C#代碼分析, 包括Unity專用的代碼檢查和快速修復。
例如:Rider會警告您不要使用低效的字符串和標籤(tag)屬性文字比較,並且會提供一個快速修複方法,將其重寫為調用CompareTag。
同樣的,如果您嘗試用 new作為關鍵字新建MonoBehaviour 或 ScriptableO
輕鬆調試Unity
使用Rider,讓您更加輕鬆的在Unity編輯器中運行C#腳本的同時進行調試。 一切都已經配置完成, 您只需按下 Debug(調試)工具欄按鈕、菜單項或快捷鍵,將調試器附加到運行中的Unity編輯器。 可以在編輯器中設置斷點,單步調試代碼,查看local、監控value,並且評估表達式。
使用Rider,您甚至可以調試沒有調試信息的代碼。 Rider自動反編譯運行中的外部庫,允許您調試反編譯後的代碼,單步調試函數,設置斷點,查看和設置本地和變量。
bject派生類的實例,Rider會發出警告提示。 只需按下Alt+Enter ,Rider即可為您修復這個問題。
.......
JetBrains Rider is a new cross-platform .NET IDE based on the IntelliJ platform and ReSharper.
New cross-platform .NET IDE
Rider helps you develop .NET, ASP.NET, .NET Core, Xamarin or Unity applications on Windows, Mac, or Linux. It provides rich editing support and code insight for languages used in .NET development, from C#, VB.NET and F# to ASP.NET Razor syntax, JavaScript, TypeScript, XAML, XML, HTML, CSS, SCSS, JSON, and SQL.
Languages and project types
Rider lets you open, edit, build, run and debug most kinds of .NET applications: desktop, web, libraries, services (with a notable exception of UWP applications). Applications that target Mono, such as Unity and Xamarin, are also supported, as well as the latest and greatest .NET Core applications.
Rider supports a lot of languages used in .NET development, including C#, F#, VB.NET, ASP.NET (both ASPX and Razor view engines), XAML, XML, JavaScript, TypeScript, JSON, HTML, CSS, SCSS, LESS, and SQL.
ReSharper + IntelliJ platform
Rider uses UI and multiple features of the IntelliJ platform, which powers IntelliJ IDEA, WebStorm, and other JetBrains IDEs. It's cross-platform, familiar to millions of developers, and provides core functionality such as VCS and database support.
On top of that, we add ReSharper features: navigation and search, refactoring, code inspections, quick-fixes, and so on. We have spent 10+ years building a feature set that helps read, write and navigate large .NET codebases, and all this is now available to Rider users.
Designed to be smart and fast
Rider isn't jammed into a 32-bit process, which helps it gain deep insight into your code while still being responsive. Rider opens (and reopens) most solutions with almost zero latency. External changes to solution? Switching Git branches? Not a problem: Rider catches up quickly.
When you edit code, our topmost priority is to make sure that you type as fast as your fingers are trained to, not only as fast as the IDE can process your input.
Intelligent code editor
Rider provides tons of smart code editing features, such as different kinds of code completion, auto-importing namespaces, auto-inserting braces and highlighting matching delimiters, rearranging code, live and postfix templates, controller and action hyperlinks in ASP.NET MVC, a multi-selection mode, gutter icons for inheritance navigation, as well as quick access to refactorings, generation, navigation and context actions.
Killer code analysis
Rider boasts 2200+ live code inspections to help you detect errors and code smells. Over 1000 quick-fixes are available to resolve detected issues individually or in bulk: just hit Alt+Enter to pick one. For a bird's-eye view of errors in your projects, use solution-wide error analysis (SWEA): it will monitor errors in your code base and let you know if anything goes wrong, even you don't have a problematic file open in the text editor.
Navigation and search
Jump to any file, type, or member in your code base in no time, as well as find settings and actions, all with a common Search Everywhere shortcut. You can find usages of any symbol, including cross-language usages and usages in string literals. For contextual navigation, use a single Navigate To shortcut that will take you from a symbol to its base and derived symbols, extension methods or implementations.
Decompiler
Want to know how third-party library code works? No problem with Rider: just use Go to Declaration on a library symbol, and have Rider decompile the library type to C# in a regular editor tab. You can then navigate decompiled code as you normally navigate your source code, as well as find and highlight usages. Sometimes however, decompiling is not even necessary: Rider can fetch source code from source servers such as Microsoft Reference Source Center.
System requirements:
Operating system (64-bit distributions only):
Microsoft Windows 10/8.1/7 (.NET Framework 4.6.1 is required)
|