There is a brilliant IDE for Java - Intellij IDEA.
Actually it's a platform which can be used to develop IDE for any language.
PyCharm, RubyMine, WebStorm, PHPStorm and others are based on the platform.
Many languages are supported via plugins but Pascal.
So I decided to change this situatuion.
Site with description and screenshots:
http://www.siberika.com/pasidea.htmThe plugin requires Community Edition of IDEA 12.хх (and probably 13.xx) which is available for free download here:
http://www.jetbrains.com/idea/download/index.htmlCurrently implemented:- context-aware code completion
- undeclared identifiers usage highlight with quick fix
- basic syntax errors highlighting
- navigation between method or routine declaration and implementation
- code commenter and brace matcher
- integration with Free Pascal compiler
- full Object Pascal language (Delphi mode) parser
- conditional compilation support
- identifier declaration, references and usages search and highlight
- rename identifier refactoring
- program running from the IDE
- Object Pascal syntax highlighting
- folding support
How to install1. Choose in menu File->Settings, than Plugins
2. Click "Browse repositories"
3. Search for "Pascal IDEA plugin"
4. Right click on the plugin and choose "Download and Install"
Please note that external build option should be turned off here:
File->Settings->Compiler
Project creation and setupIn IDEA a project consists of modules. An IDEA module corresponding to a project in Lazarus or Delphi.
The plugin adds a new module type - Pascal module.
To use a Free Pascal compiler a so called SDK should be added to IDE. This can be done at a project creation time:
1. Choose in menu File->New project
2. Select "Pascal Module" to create a module
3. Click "New" to the right of "Project SDK"
4. Choose a directory where FPC installed
To get in Pascal SDK settings:
1. Choose in menu File->Project Structure
2. Select SDKs
3. Select desired SDK
Not much to setup yet.
For a module, a main file should be specified. This is the file which be compiled and runned:
1. Choose in menu File->Project Structure
2. Select Modules
3. Select desired module
4. Select main file on "Settings" tab
On "Sources" tab a library path can be specified.
Compile and runTo compile a file just select "Compile..." from a context menu (appears on right-click)
To run an application a Run configuration of type "FPC executable" should be created first (once):
1. Choose in menu Run->Run...
2. Select "Edit configurations..."
3. Click "+"
4. Select "FPC executable"
5. Click "Run" to run the application
Any feedback, suggestions questions are highly appreciated!