I've just installed the latest Linux version of ZendStudio 9.0.4 Trial to test it out. And now when I save a file it removes all the trailing spaces inside that file which "damages" the SVN.
I know about the option Preferences->PHP->Editor->Save Action->Remove trailing whitespace and it's not checked neither inside the preferences nor inside project specific preferences. When it's checked it makes no difference.
My question is there some kind of quick fix maybe I should write something somewhere inside the settings file or this is just a bug and I'll have to wait until it's fixed ?
edit: it happends with all the built-in editors
After a lot of hours spent searching in the preferences I've finally found that checkbox udner
Window->Preferences->General->Editors->AnyEdit Tools
Inside the "Auto-Convert" tab there is a "Remove tailing spaces" checkbox
Related
It looks like Notepad++ as of ver. 6.6.7 is now actively blocking the AutoSave (ver. 1.4) plugin.
Notepad++ will remove AutoSave when upgrading and re-loading AutoSave with the Plugin Manager now fails.
Live and die by the ability to make a quick .PHP script change and switch over to the browser window without having to remember to click on the Save file toolbar icon.
Any suggestions or alternatives?
OK, found the solution.
Rather than relying on the Autosave version downloaded by Plugin Manager, go to the link listed -- http://sites.google.com/site/fstellari/nppplugins -- and download v1.40 from there.
The zip file will have 2 versions of the dll (A for ASCII and U for Unicode ?). Copy the AutoSaveU.dll file to "C:\Program Files (x86)\Notepad++\plugins\" and you should be back in business.
Update: After running for a few days with Autosave enabled, found that automatic spell check and the ability to right click on a word or phrase would randomly disappear. Disabling "Auto Save when Notepad++ looses focus" solves that problem. For now, have decided that spell check and right clicking are more important than auto-saving.
I have found the best solution to this, if you install notepad++ and use 'Resource Hacker' (google it) to change the menu (cut it down) and the icon (change to notepad), and install the autosave plugin in notepad++, then you have something that looks almost entirely indistinguishable to classic notepad! And txt files have the notepad logo.
Also you need to go into settings and turn off a bunch of settings, including under editing tab, turn off line numbering, and change colours in 'style configurator'.
The only notable difference is that highlighted text remains black.
Check out this image to see how close it is, you could even cut and rename menu items to look identical but there is no need to be that pedantic.
I've followed all the suggestions here.
When I press return, I get a new line that is indented with tabs instead of spaces.
If I backspace to clear the tabs, and then press TAB a series of times, it correctly indents with spaces.
I'm pretty sure I have all my settings set up correctly. I created a new Code Style > Formatter policy for every language in the project, and specified to always use spaces. It seems as though these settings are partially active (ex: when I press tab), but inactive when I use return. I tried restarting Eclipse. I'll try restarting the computer now...
I'm using Mac OS X 10.9.2 and a Liferay Developer Studio (1.6.3.v201312111844) version of Eclipse (not sure which Eclipse build its based on though).
Can anyone think of another setting/solution to ensure that newlines are created with spaces instead of tabs? I recently saw http://editorconfig.org/, and I'm wondering if there's some interference.
Thanks for any suggestions
If the file has existing lines that are using tabs, then Enter will respect that and try to create new lines in a similar way (see this comment by topchef for a solution). Also, it could be something in Liferay Studio's proprietary settings is overriding Eclipse standard preferences (as suggested by user John).
Keep in mind that each type of editor in Eclipse can have its own preferences and perhaps that's what you're running into here. You can try to find them all by opening Preferences and searching for "indent" in the search field. That will show all the preferences pages where indentation can be configured.
Also note that the Formatter settings don't have any affect on as-you-type formatting; that's for when you select a file or group of files or part of a file and choose Source > Format from the menu.
I've got a small homework project, and for whatever reason Eclipse has decided to stop highlighting syntax or allowing intellisense or goto definitions or anything in this Main.java file. I've tried rebooting it, and the computer, but had no luck.
The thing that really has me confused is that it's still compiling and running the code correctly (eg, changes I make in Main.java are compiled and run - it's not running old Main.class files), so it's still in the build path ... right?
Any ideas?
Right click on the file in the Package Explorer and choose the Open With menu. You will probably find that Text Editor is selected, choose Java Editor to open the file with the correct editor.
The Open With menu selection is remembered so you should get the Java Editor in future, but equally if you choose the plain text editor that is also remembered.
I suggest finding a way to reset any setting you might have set by accident. Not saying that you did it. But just to make sure, just try it out. If you customized the preferences already, you could make some kind of note of the settings, then change it. If that doesn't work, let me know. Good Luck!
Copy the text somewhere, delete the file, and then add a new class (of the same name) and paste the text back.
I have installed eclipse Kepler with Texlipse. However, the spellchecking doesn't seem to work. It doesn't mark any words.
I have already:
enabled spellchecking both in the general and the texlipse preferences
downloaded the dictionaries from http://sourceforge.net/projects/texlipse/files/dictionaries/ and set their directory as the directory for both main and user dictionaries in the Texlipse-preferences
copied the wordlists from the eclipse installation and changed the extension to ".dic" and ".dict"
restarted eclipse several times
I am also unable to find an option to start a spellcheck for the whole document, like there usually is.
I had similar problems with the TeXlipse spellchecker. To fix it I followed the instructions from https://stackoverflow.com/a/5736974/2920749
Additionally, I set the language code to en in the project settings as described here: https://stackoverflow.com/a/7064110/2920749.
However, spellchecking still did not work for me under Ubuntu 12.04.
I had to switch to a monospaced font to get it working.
Also make sure that the dictionaries are uncompressed.
Check that all dictionary files are readable and that you have write access to the user-defined dictionary.
The one thing that did the trick for me was, after having done the same as you did, to go to
Project > Properties > Latex Project Properties
and set the language setting (last entry on the right) to `en' (or whatever language you need).
The interesting thing is that in my case everything worked fine until one day, and suddenly, the project stopped doing the spelling, until I set this value, which turned it on again. I am quite sure that I did not remove this property in the last few days unless there is a secrete short-cut that I mistakenly pressed. So, very weird.
I had a similar problem. I was using Inconsolata font (that I find awesome) and spell check didn't underline wrong words. I then changed font to Dejavu Sans Mono and the underline appeared.
For me changing the font worked, but I found another solution changing the markup type in Window > Preferences > General > Editors > Text Editors > Annotations > Spelling errors
There, you can check the Text as checkbox, select a different option (e.g. highlighted) and click apply to see the changes.
For some reason, in my case, some options are not displaying and some others yes.
I'm running Eclipse Juno Service Release 2 (20130225-0426) in Windows and I'm finding that auto-indent (Ctrl-I) ignores both the General/Editors/Text Editors/Insert spaces for tabs and Java/Code Style/Formatter/Indentation/Tab policy="Spaces only" settings. With both of those set, Ctrl-I indents the code with a combination of tabs and spaces, even though Ctrl-Shift-F uses spaces only. The problem is I don't want Eclipse to reformat my code -- just correct the indentation with spaces.
Is this a known bug or am I missing a setting somewhere? Thanks!
It appears the "Correct Indentation" (Ctrl+I) will attempt to copy whatever indentation was used on the line of code immediately preceding your selected block. (Even if that line is using a combination of tabs and spaces!) If I select the whole file then it actually uses my preferences.
Seems pretty deliberate to be a bug though in my opinion there should at least be an option for it. I looked through the Eclipse bug tracker for a while and didn't see anything.