In Notepad++, view Settings > Shortcut Mapper > Scintilla commands. The command SCI_LINECOPY, currently assigned to Ctrl + Shift + X, copies the current line to the clipboard for pasting elsewhere. Very nice!
Does Visual Studio 2019 have something similar under Tools > Options > Environment > Keyboard? The Edit.Duplicate command, which copies the current line into the editor though not to the clipboard, is excellent but only superficially similar to SCI_LINECOPY.
For me, without any additional adjustment, this is a normal process as shown in the pictures below.
When the cursor is in the line (1), I can copy it to the clipboard without selecting the text first using Strg+C.
Followed of course by Strg+V (2) or optional by step (3).
impor turtle
sth=turtle.Turtle()
for i in range(30)
sth.forward(100)
sth,right(90)
turtle.done
The sublime text editor shows syntax error for**for i in range(30).
enter image description here
for i in range(3.4):
print(i)
you miss the : and the action to do.
use backquotes to format you code.
I would like to change the style for the default look of the Dart-plugin editor in eclipse IDE. For example I would like to change the colour of comments from green (default) to pale gray. How can I accomplish this in the Dart eclipse plugin. I see how it is done for Java, JavaScript etc but none for Dart.
I found a way to change the theme manually (the Dart plug-in doesn't have any option to change it automatically, and doesn't support other plug-ins like Eclipse Color Theme).
Depending on your OS, these steps might be different, but this worked for me on Linux.
From your Eclipse workspace directory, go to .metadata/.plugins/org.eclipse.core.runtime/.settings. There is a file named com.google.dart.tools.ui.prefs; open it with your preferred text editor.
In my case, I wanted to use the "Dartboard" theme included in Dart Editor. I copy-pasted the following from the same file in the Dart Editor workspace directory (on my system, found in ~/.dartEditor/.metadata/.plugins/org.eclipse.core.runtime/.settings) :
content_assist_completion_replacement_background=250,250,250
content_assist_completion_replacement_foreground=0,0,0
content_assist_parameters_background=250,250,250
content_assist_parameters_foreground=0,0,0
content_assist_proposals_background=250,250,250
content_assist_proposals_foreground=0,0,0
dart_bracket=96,96,96
dart_comment_task_tag=96,96,96
dart_default=0,0,0
dart_doc_default=96,96,96
dart_doc_keyword=96,96,96
dart_doc_link=96,96,96
dart_doc_tag=96,96,96
dart_keyword=0,0,0
dart_keyword_return=0,0,0
dart_multi_line_comment=96,96,96
dart_multiline_string=103,155,59
dart_operator=0,0,0
dart_single_line_comment=122,122,122
dart_string=103,155,59
glanceColorBackground=251,251,200
glanceSelectedColorBackground=182,214,253
pf_coloring_argument=0,0,0
pf_coloring_assignment=0,0,0
pf_coloring_comment=122,122,122
pf_coloring_key=0,0,0
pf_coloring_value=103,155,59
semanticHighlighting.annotation.color=0,0,0
semanticHighlighting.annotation.enabled=true
semanticHighlighting.builtin.bold=true
semanticHighlighting.builtin.color=0,0,0
semanticHighlighting.builtin.enabled=true
semanticHighlighting.class.color=6,70,167
semanticHighlighting.class.enabled=true
semanticHighlighting.constructor.color=6,70,167
semanticHighlighting.constructor.enabled=true
semanticHighlighting.deprecated.color=0,0,0
semanticHighlighting.deprecated.enabled=true
semanticHighlighting.directive.bold=true
semanticHighlighting.directive.color=1,77,100
semanticHighlighting.directive.enabled=true
semanticHighlighting.dynamicType.color=0,0,0
semanticHighlighting.dynamicType.enabled=true
semanticHighlighting.field.color=135,49,46
semanticHighlighting.field.enabled=true
semanticHighlighting.function.color=0,0,0
semanticHighlighting.function.enabled=true
semanticHighlighting.functionTypeAlias.color=6,70,167
semanticHighlighting.functionTypeAlias.enabled=true
semanticHighlighting.getterDeclaration.color=135,49,46
semanticHighlighting.getterDeclaration.enabled=true
semanticHighlighting.importPrefix.color=0,0,0
semanticHighlighting.importPrefix.enabled=true
semanticHighlighting.inheritedMethodInvocation.color=0,0,0
semanticHighlighting.inheritedMethodInvocation.enabled=true
semanticHighlighting.localVariable.color=0,0,0
semanticHighlighting.localVariable.enabled=true
semanticHighlighting.localVariableDeclaration.color=0,0,0
semanticHighlighting.localVariableDeclaration.enabled=true
semanticHighlighting.method.color=0,0,0
semanticHighlighting.method.enabled=true
semanticHighlighting.methodDeclarationName.bold=true
semanticHighlighting.methodDeclarationName.color=11,91,210
semanticHighlighting.methodDeclarationName.enabled=true
semanticHighlighting.number.color=0,0,0
semanticHighlighting.number.enabled=true
semanticHighlighting.parameterVariable.color=135,49,46
semanticHighlighting.parameterVariable.enabled=true
semanticHighlighting.setterDeclaration.color=135,49,46
semanticHighlighting.setterDeclaration.enabled=true
semanticHighlighting.staticField.color=135,49,46
semanticHighlighting.staticField.enabled=true
semanticHighlighting.staticFinalField.color=85,18,42
semanticHighlighting.staticFinalField.enabled=true
semanticHighlighting.staticMethod.color=0,0,0
semanticHighlighting.staticMethod.enabled=true
semanticHighlighting.staticMethodDeclarationName.bold=true
semanticHighlighting.staticMethodDeclarationName.color=11,91,210
semanticHighlighting.staticMethodDeclarationName.enabled=true
semanticHighlighting.typeArgument.color=3,49,120
semanticHighlighting.typeArgument.enabled=true
semanticHighlighting.typeParameter.color=3,49,120
semanticHighlighting.typeParameter.enabled=true
sourceHoverBackgroundColor=251,251,200
This will change the appearance of every Dart source file you open in Eclipse. Then, you can change the colors as you wish.
It's better than that eye-stinging and ugly purple default Eclipse theme... (in my opinion)
Based on this issue I'm guessing this probably isn't possible right now :-/
How to auto-indent in Sublime Text 2 with Erlang after -> ?
I found this page: http://sublimetext.userecho.com/topic/85708-fix-increaseindentpattern-for-erlang/
How to apply it?
Do I have to use some packages such as SublimErl?
Thanks!
Update:
Install Sublime-Erlang (https://github.com/fjl/Sublime-Erlang‎) and disable the Erlang package shipped with Sublime Text 2 is the most easy way.
If the want to apply the new pattern that you linked to, than edit this file:
~/Library/Application Support/Sublime Text 2/Packages/Erlang/Indentation Rules.tmPreferences
SublimeErl looks like a cool plugin. SublimeREPL also offers Erlang support.
I'm trying to use other editor with TortoiseHG, instead of (Windows) Notepad.
I have tried the solutions mentioned here:
Mercurial and Notepad++ Integration
and here:
https://bitbucket.org/tortoisehg/thg/wiki/OpenAtLine
But no results. When I right-click a file and choose "Edit Local" no file is opened at all, except when I don't set any specific editor (then file is opened in Notepad).
I have tried different editors, like Notepad++ and Sublime Text 2, and no result. Also, I tried to change configuration using "Setting" in GUI, and editing "C:\Users\<my_user>\mercurial.ini"
For example, I tried:
#### # For Sublime Text 2
[tortoisehg]
editor = C:\Program Files\Sublime Text 2\sublime_text.exe [$FILE:$LINENUM]
#### # Or, for NotePad++ :
[tortoisehg]
editor = C:\Program Files (x86)\Notepad++\Notepad++.exe ["$FILE" -n$LINENUM] -multiInst -nosession
What I'm doing wrong?
You'll kick yourself...
Change:
[tortoisehg]
editor = C:\Program Files (x86)\Notepad++\Notepad++.exe ["$FILE" -n$LINENUM] -multiInst -nosession
To:
[tortoisehg]
editor = "C:\Program Files (x86)\Notepad++\Notepad++.exe" ["$FILE" -n$LINENUM] -multiInst -nosession
Note the additional quotes around the path to Notepad++.
I'm guessing it's exactly the same issue with your path to Sublime Text too as both paths contain a space.
Strange editor = C:\Program Files (x86)\Notepad++\Notepad++.exe without double quotes worked for me