Is there some form of auto indentation mode in OpenModelica OMEdit? - openmodelica

I'm new to OpenModelica. I'm an experienced programmer (C++ and Octave) and I tried to use OMShell but it is quite hard to me, because I find that it gives very little feedback when errors are produced. So I switched to the GUI version (OMEdit). I can't find an auto-indentation feature, i.e. I would like to select all or part of the code and have the editor to reformat the code for me, like the TAB key en Emacs. Is there something like that?
TIA, Mario

No, OMEdit doesn't have any auto formatter.
Adeel.

Related

Can anyone tell me a better and free alternative to sumblime text editor?

I am using sublime text editor for last few months...Recently I have decided to create a video tutorial...but the message that sublime shows (it is unregistered) is annoying...So can anyone tell me an alternative that works exactly like sublime (something that can ease your life while working on some project)...
Depending on what kind of code you're working with, you can give Netbeans or Brackets a try too

Program for creating a Keyboard "CheatSheet"

I'm already searching for a while for a program to create a kind of Keyboard Cheatsheet like this:
The Keyboard Designer unfortunally doesn't support writing text below the keys.
It should be a program Windows or Linux. Also a good template in TeX would help.
Because I didn't found any program or TeX-Template for this, I used a picture from katsbits.com as template.
For anyone who want to do the same in a shorter time, here the GIMP-File. It will be looks like

Expanding a snippet within a snippet (vim or sublime)

I'm trying to improve my work flow a little bit and I'm trying to accomplish something but don't really know where to start.
I'm a huge fan of snippets, I've been customizing lots of my own, and it really helps me write code much faster, and actually avoid errors as well.
However, I'd like to be able to expand a snippet while I'm still tabbing through a current snippet.
Any idea what I might be able to do? Is there a version of snippets for vim that does this? Is there a key binding I can put into sublime that might help?
Thanks!!!
I am not sure about snipmate but you definitely can do that with Ultisnips.

Sublime Text 2 split active screen like dreamweaver

At work, I have to jump into old mysql_query procedural website build higgledy-piggledy (some var are camelCased AND underscored, no indent code, page are build in table ...)
Anyway, usually I m using ST2, but here I can't. So to search my line code, I use dreamweaver to click on the screen preview and the cursor drop on the code line I want.
I do not like and I don't know dreamweaver. But as code is UNREADABLE, that is the only way I have to work.(My boss doesn't want rebuild theses sites).
Here is my question, does anybody know for ST2 a way (or a plugin) to split screen and click on screen preview to go right to the code line just like dreamweaver preview does ?
Regards.
Answer is simple, you will never find something like that.
Try here - http://webdesign.about.com/od/windowshtmleditors/tp/windows-wysiwyg-editors.htm
WYSWIG html editors.
Try Sublime CodeIntel, as well says this page:
...This plugin brings a little of IDE functionality into ST2. This plugin reads all your code and is able to code-complete, jump into
definitions and function call tooltips. Although sometimes looks a
little buggy, it’s still worth having it around. It’s a huge time
saver, especially when you are dealing with other’s people code.
If is suitable for that project you can remove the package later.

Which text editors have a format code option?

I'm looking for a basic text-editor with code format like NetBeans or Intellij.
In NetBeans IDE and Intellij IDE you have the option format code.
Something like this,
if( a == b )
{
bla;
bla;
bla;
}
after using this feature it will look like this:
if( a == b ){
bla;
bla;
bla;
}
P.S. I want the same thing which NetBeans and Intellij are offering.
I want a text editor, because I'm at beginning with Java and the IDE's are not very good for a beginner.
Most text editors let you bind hot keys to commands. I use SciTE and bind a call to astyle on the current document to a function key. Astyle formats most of the languages reasonable well ( it makes a pig's ear of C99 designated initialisers, but apart from that it's good ) . Other source code formatters are available.
Almost any programmer's editor or IDE will re-format code. You mention NetBeans and InelliJ in your question, but you don't mention why they aren't meeting your needs. Without more information, all you're likely to get is a list of editors, which isn't going to help you much.
What, specifically, are your requirements?
I'm not sure if it will change the location of curly-braces (on the same line versus a separate line) but vim (a text editor, available on doze and *nix) will fix indentation.
I find the "==" command to be the most useful. Or, in command mode, going to the top of the file and invoking "=G" will properly indent the entire file.
Summary of vim indentation options:
http://vim.wikia.com/wiki/Indenting_source_code
Official documentation of vim indentation options:
http://www.vim.org/htmldoc/indent.html
The Zeus editor can do this by running a macro script and these scripts can also be bound to the keyboard.
Check Code-Chameleon.
It Supports many languages.
emacs supports fill-region which will format any selected region of code according to the current mode.
You might find mark-whole-buffer and mark-sexp useful in this context.
For c-like languages there is support for a vast panoply of different styles. Read the documentation associated with the variable c-file-style. (Though why anyone would not use the One True Brace Style is beyond me...)

Resources