Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Scala plugin for IntelliJ IDEA
Search
Pavel Fatin
July 16, 2011
Programming
0
150
Scala plugin for IntelliJ IDEA
Scalathon 2011,
http://scalathon.org/2011/
http://vimeo.com/28692913
Pavel Fatin
July 16, 2011
Tweet
Share
More Decks by Pavel Fatin
See All by Pavel Fatin
Inside the IntelliJ Scala Plugin
pavelfatin
1
150
Design Patterns in Scala
pavelfatin
6
1.6k
Практичность Scala
pavelfatin
0
130
Новый подход к компиляции Scala в IntelliJ IDEA
pavelfatin
0
140
Scala Plugin для IntelliJ IDEA
pavelfatin
0
62
Other Decks in Programming
See All in Programming
Web Components で実現する Hotwire とフロントエンドフレームワークの橋渡し / Bridging with Web Components
da1chi
3
2.3k
技術的負債の正体を知って向き合う / Facing Technical Debt
irof
0
170
CSC509 Lecture 03
javiergs
PRO
0
330
Things You Thought You Didn’t Need To Care About That Have a Big Impact On Your Job
hollycummins
0
220
What's new in Spring Modulith?
olivergierke
1
150
Android16 Migration Stories ~Building a Pattern for Android OS upgrades~
reoandroider
0
110
その面倒な作業、「Dart」にやらせませんか? Flutter開発者のための業務効率化
yordgenome03
1
130
dynamic!
moro
10
7.7k
After go func(): Goroutines Through a Beginner’s Eye
97vaibhav
0
390
uniqueパッケージの内部実装を支えるweak pointerの話
magavel
0
1k
あなたとKaigi on Rails / Kaigi on Rails + You
shimoju
0
130
私達はmodernize packageに夢を見るか feat. go/analysis, go/ast / Go Conference 2025
kaorumuta
2
550
Featured
See All Featured
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.7k
Scaling GitHub
holman
463
140k
Art, The Web, and Tiny UX
lynnandtonic
303
21k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
140
34k
It's Worth the Effort
3n
187
28k
Building Adaptive Systems
keathley
43
2.8k
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
The Power of CSS Pseudo Elements
geoffreycrofte
79
6k
The World Runs on Bad Software
bkeepers
PRO
72
11k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
Large-scale JavaScript Application Architecture
addyosmani
514
110k
Building a Scalable Design System with Sketch
lauravandoore
463
33k
Transcript
Pavel Fatin Alexander Podkhalyuzin Scalathon, 2011 Scala plugin for IntelliJ
IDEA
Thank you!
IntelliJ Scala Plugin Agenda Why do we need it
What's inside How it's made How to contribute
Do we need an IDE for Scala?
Can't we just use Notepad? Rationale
Is it always the right tool? Rationale ?
What makes us more productive? Highlighting Inspections
Code formatting Auto-completion Information look-up Refactoring Integration Rationale
What's already available?
Syntax highlighting Injected language By-name argument Implicit conversion Deprecated method
Features
Error highlighting Ordinary: Type-aware: Quick-fixes: Features
Inspections Unused symbol Variable could be value
Redundant return Syntactic sugar Method signature inspections Features
Language injection Pattern-based: Via parameter annotation: Via
value annotation: Features
Dark color schemes Features
Language-aware editor Brace balancing: Entities selection: Code
folding: Features
Formatting Features
Code completion Features
Information look-up Type info Parameter info Documentation
look-up Definition look-up Features
Type Info Features
Parameter info Features
Documentation look-up Features
Definition look-up Features
Imports management Import entity on completion Auto-import unresolved
symbol Highlight unused imports Optimize imports Paste imports Features
Refactoring Rename Introduce variable Inline variable
Extract method Introduce parameter Features
Rename Features
Introduce variable Features
Inline variable Features
Extract method Features
Introduce parameter Features
Integrations Java JUnit / Specs / ScalaTest
Maven Spring Lift SBT Features
How it's made (It's not rocket science theoretical physics)
Building the project Get the latest IDEA EAP build
Download IDEA sources Enable DevKit plugin Configure a Plugin SDK Clone Scala plugin repository Open the project in IDEA Architecture
Plugging the plugin Plugin.xml OpenAPI Architecture
Code processing Document Lexer Parser Wrapper PSI Architecture Text Tokens
AST
Processing example Literal Literal ReferenceExpression ReferenceExpression WhiteSpace WhiteSpace Architecture STRING
WS IDENTIFIER TRUE "that's" + WhiteSpace WhiteSpace Literal Literal true WS InfixExpression InfixExpression
PSI viewer Architecture
PSI foundation Architecture PsiElement textRange parent children prevSibling nextSibling add(element)
addBefore(element, anchor) addAfter(element, anchor) delete() replace(newElement)
PSI elements hierarchy Scala Architecture PsiFile ScTypeDefinition ScalaFile PsiComment ScGenerator
PsiClass PsiElement
Scala Language Specification Architecture
Scala domain elements Architecture ScClass name constructor superTypes members extendsblock
add(member, anchor) remove(member) isInheritor(psiClass)
TODO
Tasks Bug fixes Inspections Refactorings Intentions
Frameworks support Type system improvement [Your most wanted feature here] TODO
Everyone is Welcome!