I am using hgview (http://www.hgview.org/). In some cases a diff of a file is not shown, but instead only a "File too big !" line is present.
Is there a way to somehow configure this limit?
Just discovered the 'Display heavy file' icon on the taskbar of hgview...
Related
I have several tabs open in "File Transfer" from different previous connections.
How can I close unused connection tabs? I can only hide the whole "File Transfer" window but not separate tabs.
PhpStorm version is 2021.3.1
It appears to be a regression in 2020.3, one just can't close tabs in the File Transfer tool window any longer.
Have filed it as WI-65100
Thank you for noticing!
I just clicked "Show all duplicates like this" in the "Duplicated code fragment" context menu:
Now the duplicated code is permanently highlighted with a purple background, even if I close the "Duplicates" toolbar at the bottom of the IDE.
How do I remove this highlighting?
Simply hit the ESC key to remove that highlighting.
If the IDE is finding "Duplicate code fragments" between your source code and a copy of it in an output directory (like Python setup.py creates in a build/ directory; I don't know how this goes in PHP), then mark the output directory as excluded from source directories.
Right-click the output directory in the Project View, then Mark Directory As > Excluded.
BTW, this works in PyCharm and IntelliJ as well, and presumably in all the JetBrains IDEs.
Just re-open the file/project - it will remove the highlighting.
If you don't like the "Duplicate code fragment" violation to be reported for your code fragment, try suppressing inspection for statement by adding // noinspection DuplicatedCode before it.
There is a request for making the duplicates highlighting less aggressive, IDEA-210614, please feel fre to vote for it
I am debugging my java application and added a "Start Recording Marker" {1} and an "End Recording Marker" {2} (in source code right click -> Breakpoint -> Add ... Marker).
I also had to add a normal Breakpoint {3} because if I don't, the application gets stuck somewhere in the start up. (StartingFrame is displayed, so a part of the code got executed, but not all of it.)
When I then press the play button {4} in the "Record & Analyze" Window and select the correct Recording Set, I see in the Debug console that the recording is started and later ended {5}. The debugged application itself starts successfully.
However, in the "Record & Analyze" Window it still says "There are no items to show in this view." {6}
How can I get the recorded method calls to be displayed there?
In the end, I want to generate a Sequence Diagram from those recordings. (like here)
Images (for the numbers in the { }):
Asked the Sparx Support:
The debugger is failing to resolve UNC paths for source files. So, the only workaround is to build it locally, or set up a symbolic link on the laptop to the UNC path and use that.
My source files are at:
//chca6021.eur.beluni.net/a469627$/Documents/workspace/HelloWorld
Moving the project to a local directory (under C:/) solved the problem.
I may be missing the obvious, but can't seem to solve this fairly simple & typical case (with v3 build 3022 on Debian or XP, in case it matters):
Start Sublime Text opening a project "myprj", specified on its command-line,
using default.sublime-project located under that project's dir (say "/repo/myprj"),
automatically re-opening the last open files of that project (i.e. its workspace),
using default.sublime-workspace for that (also from the same project dir)
but (obviously) not auto-opening any other files remembered from non-project sessions,
and automatically saving all open files (to the above default.sublime-workspace) on exit.
Ideally:
$ sublime_text --project /repo/myprj/default.sublime-project
should just work. But it doesn't (see below).
Another approximation that seemed reasonable:
setting "hot_exit" and "remember_open_files" to false, and then invoking ST with:
$ sublime_text --data /repo/myprj --project default.sublime-project
But ST3 either doesn't find the project file (via --data), unless I chdir there first (--data seems to be no longer supported?), and it either doesn't auto-open any workspace files from last time (despite a previous "Project / Save Workspace As..."), or, if I set "remember_open_files" back to true, it just re-opens the last open files regardless of the project given on the command line.
I guess the issue is the workspace file not being handled automatically for some reason, and I'm just missing some trivial step somewhere. (The official docs (and also the unofficial) seem to discuss command-line switches for OS X only, and asking for --help didn't actually help with this one.)
(Please note: I wouldn't like to launch ST first, and then switch to some project from inside manually, and I also don't want to store the sublime-project/-workspace files outside of the prj. dir.) Thanks a lot!
I seached for a solution for a similar problem these days and didn't find a proper way. So i created an automator app with a small apple script. Maybe this helps you too.
Open Automator and Choose news Application.
Create an action to start Sublime Text 2
Insert an action to perfom the following apple script:
delay 0.2
tell application "System Events"
tell process "Sublime Text 2"
tell menu bar 1
tell menu bar item "Project"
tell menu "Project"
tell menu item "Recent Projects"
tell menu "Recent Projects"
click menu item "~/yourproject.sublime-project"
keystroke "p" using {command down, shift down}
end tell
end tell
end tell
end tell
end tell
end tell
end tell
For anyone still looking to do this, you can launch the built-in command line tool and launch it with a project like so (Mac OSX):
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" --project "absolute-path-to-your.sublime-project"
i usually edit files in sublime text 2 that can also be edited and compiled with another program. As i have them already opened in sublimetext i do the following:
right click and choose "copy file path" (to clipboard)
Win+R to open windows run dialog
CTRL+V to paste the file path
hit enter to open the file with the associated program
i wonder some shortcut can be configured so it automatically starts the opened file with its associate program
thanks in advance
This can be done. I was in a very similar situation using Sublime as my editor of choice over the default SAS program editor. I was able to use the win32com.client.dynamic.Dispatch module to connect to SAS via OLE and pass text from Sublime directly to SAS using Sublime's build system to call my plugin. Making the connection was the easy part, it was the other processing that I had to do which was the time consuming part, but since you want to pass just a file name or the entire contents of your file, this should be a fairly straightforward plugin. Since I do not know what program you wish to open, here is the code that makes my implementation work. Maybe you caan glean something out of this.
def send_to_sas_via_ole(selected_code):
from win32com.client.dynamic import Dispatch
sasinstance = Dispatch("SAS.Application")
# submit the lines to sas
for selection in selected_code:
# for some reason cannot send as one big line to SAS, so split into
# multipe lines and send line by line
for line in selection.splitlines():
sasinstance.Submit(line)
and then the call in the run method of my plugin class:
class RunSasMakoCommand(sublime_plugin.TextCommand):
def run(self, edit):
try:
send_to_sas_via_ole(selected_code)
except Exception as e:
print "\n".join(selected_code)
print "Couldn't connect to SAS OLE"
print e
Good luck!
Open 'regedit.exe';
Navigate to
HKEY_CLASSES_ROOT\Applications\sublime_text.exe\shell\open\command
correct the path. Exit 'regedit.exe'
(optional) restart 'explorer.exe' or reboot your PC.
enjoy :p;
Right click on the file, press "Properties". You will see Opens with SomeProgram and then a change button. Click on the change button, and then look through the list for Sublime Text, if you can't find it, you can choose an application using the file explorer, from there you can navigate to C:\Program Files\Sublime Text 2 and choose sublime_text.exe