Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: CodeEditor, Assist++, Topic++ » make comments
make comments [message #22768] Wed, 12 August 2009 21:42 Go to next message
sapiency is currently offline  sapiency
Messages: 56
Registered: September 2008
Member
Hi,

actually I use rev. 1472 from svn on debian. A few revisions ago I notice a nice feature in the editor

mark a few lines, press "CTRL + '+'" and the block was marked as comment with /* ... */, press the shortcut again the comments were removed.

actually its not available and I cannot find such a option in the dialog to configure the keyboard shortcuts for the ide.

I really enjoyed it. Is it still available, but with another shortcut? Or did you remove it ...

regards

reinhard
Re: make comments [message #22779 is a reply to message #22768] Fri, 14 August 2009 06:23 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 890
Registered: December 2006
Experienced Contributor
It is Ctrl +[/] on my laptop ...
It would be nice to find a combination for C++ stile comments too. Smile


Regards,
Novo

[Updated on: Fri, 14 August 2009 06:24]

Report message to a moderator

Re: make comments [message #22780 is a reply to message #22768] Fri, 14 August 2009 08:33 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 801
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor

For it works like this:
I select some text, and then I hit: [ { ( " / or * to enclose it in the desired symbol.
(can be configured in Setup / Environment / Editor-tab)

The shortcuts you are using works even when that setting is off?

And the selection+* doesn't work in reversed way, it does add second set of /* */. Sad
Re: make comments [message #22782 is a reply to message #22779] Fri, 14 August 2009 21:21 Go to previous messageGo to next message
sapiency is currently offline  sapiency
Messages: 56
Registered: September 2008
Member
Novo wrote on Fri, 14 August 2009 06:23

It is Ctrl +[/] on my laptop ...
It would be nice to find a combination for C++ stile comments too. Smile


ok, that works for me too, but only with linux and when I enabled the option in environment
with windows only "SHIFT + *" works, but it works bidirectional

maybe it was this shortcut and I remember something wrong. I removed ".upp" before I installed the latest version, so I not need to copy the sources to my homedirectory manually ...

@novo:
you can solve your idea with "abbreviations", just create one with one blank and put the "//" to what to do with this

whenever you type " ", Ctrl + "." you geht your "//"

@mr_ped:
I didn't remeber, but after this tests I believe I the option was enabled. by the way, it works in both ways when you mark complete lines, e.g. with "SHIFT + curser down"

reinhard
Re: make comments [message #22786 is a reply to message #22782] Sat, 15 August 2009 06:05 Go to previous message
Novo is currently offline  Novo
Messages: 890
Registered: December 2006
Experienced Contributor
sapiency wrote on Fri, 14 August 2009 15:21


@novo:
you can solve your idea with "abbreviations", just create one with one blank and put the "//" to what to do with this

whenever you type " ", Ctrl + "." you geht your "//"



Thanks. I figured out how to do that in a simpler way (thanks to mr_ped).

Just select a block of text and then hit [/]. If you selected a line block then this operation is bidirectional. This is what I missed for a long time.

[*] and Ctrl+[/] work the same way on my laptop.

Ctrl+[/] for some reason doesn't work on my Windows PC at work.

I think these tricks should be listed in an editor's "How To". Probably they already are but I didn't read it.


Regards,
Novo
Previous Topic: suggestion: code-parsing plugins
Next Topic: Problem cutting and pasting from the Topic
Goto Forum:
  


Current Time: Thu Nov 21 09:17:36 CET 2019

Total time taken to generate the page: 0.00946 seconds