question - settings - editor

hallo,

must say this seems to be good from my first impression.

A quick question - is it possible to edit the identifiers for the editor files

eg smarty at the moment
{* I am a Smarty comment, I don't exist in the compiled output *}
{include file='string'}

whereas we are using
<!--{* I am a Smarty comment, I don't exist in the compiled output *-->
<!--{include file='string'-->

is there any way to change that ?

thanks

<hr>

ps it also seems to have problems at the moment with smarty specifics

eg

<!--{ foreach from=$form_error_content item=ITEM key=KEY}--> // tells me here tag is not closed
    <div id="form_error_content" ><!--{ *$ITEM*}--></div>
<!--{ /foreach }--> // tells me here foreach is misspelled

<hr>

Also how do you deal with paths / includes
both of these give me errors (not surprising)
require_once($_SERVER['CONF_FILE']);
require_once(PATH_INCLUDES.'main.inc');


but is there any way to resolve this ? / can i define include paths in my project anywhere ?

<hr>

In the project settings (not the ide settings) under Code Style - php does not turn up ?

<hr>


is there a setting for the default double click in file ie what it selects ?

ie with a variable at the moment it selects "$variable"
is it possible to select just "variable" ?

<hr>

When saving a file the structure is not updated ?

<hr>

Bug or feature ? (CORRECTIONS)

When editing multiple files - i cannot see on the open file riders if anything has been changed and not saved (i would expect a * next to non saved files)
- correction i take that back i have found the option in settings (but the asterex would be easier to see at the end of the filename or a different colour)

Also when another user/editor has updated a file - the file does update but does not tell me it has been changed (or give me a choice to not update it)

19 comments
Comment actions Permalink

Also how do you deal with paths / includes
both of these give me errors (not surprising)
require_once($_SERVER['CONF_FILE']);
require_once(PATH_INCLUDES.'main.inc');

I have same problem. I try to add

$_SERVER["DOC_ROOT"]."/test"

to Project Settings -> resources but  it do not help.

How to fix it?

0
Comment actions Permalink

How can you turn on line wrap?

0
Comment actions Permalink

Hi Keith,

That's a good deal of questions. I'll try to answer generic ones now and will move forther in next reply.

In the project settings (not the ide settings) under Code Style - php does not turn up ?

This will be added. Thanks for mentioning

is there a setting for the default double click in file ie what it selects ?

ie with a variable at the moment it selects "$variable"
is it possible to select just "variable" ?

Right now this is not possible. We'll consider such behavior.

When saving a file the structure is not updated ?

Looks like a bug. What file type were you editing?

Bug or feature ? (CORRECTIONS)

When editing multiple files - i cannot see on the open file riders if anything has been changed and not saved (i would expect a * next to non saved files)
- correction i take that back i have found the option in settings (but the asterex would be easier to see at the end of the filename or a different colour)

This is controlled by "Mark modified tabs with asterisk" option located in Editor | Editor Tab preferences pane

Also when another user/editor has updated a file - the file does update but does not tell me it has been changed (or give me a choice to not update it)

This is the intended behavior. You can try changing the "Synchonize files on frame activation" option in General preferences pane under IDE Settings.

Regards,
-Eugene

0
Comment actions Permalink

If we perform automatic code wrapping it may result files marked as changed for version control system which is not good.

As for me I prefer to use right margin vertical line (Settings | Code Style | General | Right margin (columns)) and split code manually. I don't like to write long lines that required scrolling them horizontally.

However, there is a feature request for so called 'soft wrap': http://www.jetbrains.net/jira/browse/IDEABKL-1132
You may vote for it and once enough votes collected, the feature will be added.

Hope it helps,
-Eugene

0
Comment actions Permalink

Hallo,
thanks for the prompt reply !

i definately meant soft-wrapping and will vote for it.

I'm curious - how come the big "ides" seem to ignore this feature ?
web-ide, eclipse (zend) etc

its just my opinion but this is an absolute essential - to avoid scrolling
why is this such a hard feature for them when every basic text editor has it since for ever ?
EditPlus, TextPad, UE

0
Comment actions Permalink

Sorry about the number of questions - but when you start using something new........you know how it is :-)

And even if some of the points sound negative - they are not meant too - i am impressed with this ide.

Looks like a bug. What file type were you editing?
it was a php file and definately reproduceable.

Add
$atest= 'string';

save, and look at the structure - nothing changes.
Goto other tab and then come back to the file and the structure has changes and $atest is there.

I did find Mark modified tabs with asterisk
but the asterisk could be a bit more obvious ie red or positioned after the file name

I have clicked Synchonize files on frame activation
but that is not exactly what i mean, because it automatically updates the file without giving me a choice to either not update it or save it.
In fact it gives no warning whatsoever that the file has changed

0
Comment actions Permalink

I guess the answer is in your question: those are text editors and this feature is really a must for working with texts.
But this is less important when editing code, to my opinion.

-Eugene

0
Comment actions Permalink

hmmmmm....just seems strange :-)

just one example

<input id="" type="image" src="<!--{$CONF.paths.images}-->services/v2/button_feed_bearbeiten_<!--{$smarty.const._LANG}-->.gif" alt="Feed bearbeiten" value="Feed bearbeiten" />

now i definately would want that to just be on one line
and i would also definately not want to scroll across to read it (which i have to at the moment)

Also php is at least as much  text as code generally speaking

0
Comment actions Permalink

if you do code reformat on this line in Web IDE (Code -> Reformat Code...) you will get the following:

<input id="" type="image"
       src="<!--{$CONF.paths.images}-->services/v2/button_feed_bearbeiten_<!--{$smarty.const._LANG}-->.gif"
       alt="Feed bearbeiten" value="Feed bearbeiten"/>


It seems more readable to me.

0
Comment actions Permalink

lol actually no i don't - i get a blinking red marker at the bottom of the ide and
no change :-)

bug report already submitted

0
Comment actions Permalink

Евгений, здравствуйте.
Так что делать с суперглобальными переменными? (см. мой предыдущий пост)
У меня в структуре там хранятся пути к системным папкам и классам.
Получается что из-за того что они (сг. переменные) не читаются - нет автокомплита.
Как пофиксить?

0
Comment actions Permalink

Thanks for reporting!
Probably fixed already.
Try this line in an HTML file, not PHP

0
Comment actions Permalink

It was actually a smarty template file.

Am I being stupid here.....I wanted to try it in a html file -> so goto File -> and then.......???? i can create a new project and lots of otherbit but cannot create new file ?
Am i missing something here´.

0
Comment actions Permalink

Try Ctrl+N, it is pretty standard

If you cannot find some action try Search->Find Action (Ctrl+Shift+A)

0
Comment actions Permalink

ctrl+n gives me go to class

as it says also in the help

i have found though that if i click on a project folder i can then create a new file

0
Comment actions Permalink

Ясно... Значит видимо пока альтернативы для netbeans еще нет...

0
Comment actions Permalink

There is a hotfix (hotfixes are invoked by pressing Alt-Enter inside highlighted code) on unresolved include expressions, but it's broken in current EAP. Check release notes for next EAP version. And it will definitely be solved for 1.0

0
Comment actions Permalink

Let me remind you that EAP is not even a beta version. Don't be too quick in making your judgement. Also, please mind the international nature of this forums.  Check my reply to original post (below) regarding include resolution.

0
Comment actions Permalink

Thanks for your answer Alexey.
This release looks very well. I consider that in the near future smog to pass on your product. Very conveniently and very pleasant interface. The interface is especially actual now for me - I spend a considerable part of time behind work.
Very much I hope for release:)
One more question: there was an impression that at project indexation files marked as ignored in svn are not considered. Whether So it? And if yes, whether possibility in options to specify folders which in any case it will be necessary to index for autocomplit?

0

Please sign in to leave a comment.