Comment multiple lines shortcut in JavaScript, Domino Notes - xpages

Is there any shortcut to comment out JavaScript code in Notes?
I know the shortcut for Xpage is ctrl+shift+c

I do not know your version of Domino Designer, so I can only provide a genearal answer to JavaScript comments.
If you only have one line you want to comment, just use // at the beginning of that line.
If you want to comment multiple lines, start the comment with /* and end it with */.
Maybe you can find such a shortcut under Preferences --> General --> Keys (if your Domino Designer has that entry).

if you use vscode mark all the lines you need to comment and then click
Ctrl + /
or add
//
to the beginning of every line.

Related

What is the shortcut key for hide all doc lines in Intellij editor?

I want to hide doc lines in Intellij like:
Is there any shortcut key for hide all doc comments at once in Intellij?
If you want to have all documentation comments hidden by default, just go to Settings/Editor/Code Folding and check Documentation comments. You might need to restart IntelliJ or close opened files for it to take effect.
If you want to hide/show all documentation comments in the current file, hit Ctrl+Shift+A and select Collapse doc comments/Expand doc comments. You can even bind a shortcut to these actions in Settings/Keymap if you plan on using them frequently.

pyscripter uncomment code shortcut

Is there a keyboard shortcut for commenting out a selection of code in Pyscripter?
I'm using version 2.5.3.0 64 bit.
I've examined the interface and tried a few google searches, including a search on this site.
Press Ctrl + the quote key
Will be used to comment selected lines and uncomment selected commented lines
If you're used to using Alt+3 (comment) and Alt+4 (uncomment) like you did with PythonWin, you need to set up your own shortcuts. Tools > Options > IDE Shortcuts..., then go to the Source Code Category and edit actEditCommentOut and actEditUncomment to whatever you want to use as keyboard shortcuts. So relieved I finally figured this out, that silly "Toggle Comments" button was driving me nuts! Hope this helps someone else.
computer was not registering the ctrl + " option. But i was able to change source code and it worked great.

Shortcut for deleting a line in dreamweaver?

What is the shortcut for deleting the current line where the cursor positioned.
ex: eclipse have crtl+d
To delete line(s)
Mac: Command+Shift+D
Windows: Ctrl+Shift+D
https://helpx.adobe.com/dreamweaver/using/keyboard-shortcuts.html
There are no direct shortcuts as far as I know but here is a list of commands for dreamweaver.
http://cpaoffers.com/design/dw-shortcuts.php
My typical method to do this is to hit the home > shift+end > del.
Or you could try shift+up or shift+down to select the line above or below and then hit delete.
Danilo Celic's answer helped me with CS6, just use the second one. Although it's in Japanese, just install and use it.
If you want to know more: Then, find the installed files in your own
C:\Users\[your user name]\AppData\Roaming\Adobe\Dreamweaver CS6\[your CS6 language]\Configuration\Commands
There you can open the just-installed files and check them. The comments are in Japanese. The code are in Javascript and are easy to read.
There are 5 commands in that file. To use only the "Delete line" function: In CS6, open history panel, go to design mode, do any action like press a key, right click on that action from history panel and record that action. Then you can find the record action in the Commands folder mentioned above, and then you can copy the javascript from the downloaded one into your own recorded action file.
I've seen two extensions that add the delete line functionality:
http://xtnd.us/dreamweaver/codeextras
http://yoropan.com/en/archives/544
I haven't used either one. I've been told that the first one may not work in Dreamweaver CS6, no idea about the other one. once installed, you should be able to add a keyboard shortcut (Edit -> Preferences, Dreamweaver -> Preferences on Mac) for functionality that you're looking for.
You can add a custom keyboard shortcut for deleting lines in Dreamweaver.
Dreamweaver uses Brackets for its text editor, and this is what handles the Delete Line command, not the traditional Menu system for rebinding most other Dreamweaver commands.
Create a Brackets keyboard shortcut configuration file.
Windows: %APPDATA%\Adobe\Dreamweaver CC 2019\en_US\Configuration\Brackets\keymap.json
Mac OS: ~/Library/Application Support/Adobe Dreamweaver CC 2019/en_US/Configuration/Brackets/keymap.json (untested)
Create an override in this file, according to the Brackets User Key Bindings JSON Data Format. Make sure you use the - separator between key names, not +.
{
"overrides": {
"Ctrl-E": "edit.deletelines"
}
}
Rebind any conflicting keyboard shortcuts in Dreamweaver. In my Ctrl+E example above, it collides with Quick Edit.
In Dreamweaver, go to Edit → Keyboard Shortcuts.
Make a new Set if you're using the default Dreamweaver Standard Set.
Find the command you want to change. Quick Edit is in the Code Editing section.
Highlight the shortcut you want to modify.
If you want to unbind that shortcut, click the - button.
Otherwise, rebind that shortcut by typing the new shortcut in the Press Key field, and then clicking Change.
Click OK to save your changes.
If your change is not persisted, you can usually fix this by editing the following files.
%APPDATA%\Adobe\Dreamweaver CC 2019\en_US\Configuration\Menus\Custom Sets\*.xml
%APPDATA%\Adobe\Dreamweaver CC 2019\en_US\Configuration\Menus\menus.xml
Restart Dreamweaver for your new Brackets keyboard shortcuts to be read.
To bind other commands besides Delete Line, see the full Brackets Shortcuts command ID column.
I used these steps with Adobe Dreamweaver 2019 (19.2) on Windows.

Resharper completion without overwriting existing code

In Resharper when I go back to edit some existing code.. eg. wanting to insert a String.Format into this code:
<td>
<%= Html.Encode(item.Address) %>
</td>
I move the cursor to before 'item' and type in 'String.F', getting Resharper's intellisense completion list that includes the 'Format' method.
However if I press TAB then it replaces 'item' with '.Format()'
Is there a way to use completing without replacing the existing text?
Stumbled upon using Enter instead of TAB to choose from the completion list. That does exactly what I want. It surrounds (in this case) 'item.Address' with the String.Format( .. ).
There are two techniques you can use.
The first is to use the Enter key, the second is to pop a space between where you are going to start typing and the next bit of code, which will prevent the next bit of code from being overwritten.
There is an actual setting now to disable this (annoying) behavior.
Go to the Options dialog (Menu -> Resharper -> Options).
In this Options dialog go to Environment -> IntelliSense -> Completion Characters.
Here you can set the Tab behavior to Insert instead of Replace.
Screenshot of Options
Resharper documentation about Completing Characters
This is an addition to the answer in 2010, for everyone that reaches this post via populair search engines ;)
You could also use the String.Format surround template but you may have to map a hotkey to it for easier access.
The keyboard command you want to use is called: Resharper_ForceCompleteItem. So if you go into Visual Studio's Tools > Options > Environment > Keyboard you could assign a keyboard shortcut there. Not sure if it would be possible to use Tab, though.

How to add text to "edit box" control in visual studio 2005

I want to add some text on a dialog in VS 2005. I have installed Microsoft SDK on my system.
The text which I want to add is very big, it runs upto 4 pages.
So I decided to add edit control with scrollbar, which I am not able to do.
I tried adding through string table, but formatting was not maintained.
Plz let me know, how to show a formatted text upto 4 pages on a dialog.
My application is non MFC application.
Thanks in advance
Vinayaka Karjigi
The edit control has a hard limit of 65k worth of text. You may be running into that. Try a rich edit control.
Have you tried to set the MultiLine attribute of your edit control?
Have you tried manually adding "\r\n" for next line or "\t" for tab in the string buffer. That may do the trick.
Update: Say you want to break the text in two lines TCHAR szEditBoxBuffer[] = TEXT("Hello\r\nWorld"); may do the trick. For tabs TCHAR szEditBoxBuffer[] = TEXT("Hello\tWorld"); This is tedious but this is what i could think of.

Resources