Disable file changed checking in RStudio - rstudio

I go back and forth between an IDE (intellij) and Rstudio. I am having issues with the latter when editing files in the former:
Actually there are many more : this is just a subset.. I was unable to find any configuration for the "check for modified files" or similar. Does it exist?

I don't know if there's any way to permanently disable the messages, but you can click on the button that's supposed to say "Do not show this message again." You can also avoid it by not having unsaved changes in RStudio when you save changes from your other editor.

Related

Mimic Sublime's handling of unsaved files in Atom

Sublime has this cool feature where you can create a new file (or modify an existing one) and close the text editor without having to explicitly save the modifications.
Next time the editor is opened, the unsaved modifications will still be there.
Is there a way to mimic this behaviour in atom?
This functionality is already included in Atom by default now.
Settings -> Core Settings uncheck Open Empty Editor on Start
Set Restore Previous Windows on Start to Always.
Settings -> Packages -> autosave. In package settings check Enabled.
Also, restore will not work in Atom unless at least one Project has been added to the Project pane. You can add anything there. You can just add my Documents folder.
This sublime feature is called hot exit. Although atom doesn't has this feature this package claims to implement it.
Note: I haven't tested it, so I don't know if it really works; be careful in order to avoid losing your work.

How to force folder refresh in Sublime, when "Project > refresh" doesn't work?

Especially when using an sftp drive (but this problem is also an issue with local drives, although thankfully not as frequent), the folders in the sidebar just keep spinning and spinning, and the "Open Anything" dialog therefore has no files to choose from.
"Project > Refresh folders" does not work in most cases.
I've resorted to restarting Sublime manually, which works most of the time, but it's getting to be a pain to have to do this every other time I switch projects.
Is there any better way to "force" the folders to refresh?
This problem is the reason I asked this question:
How to save project state before exiting in ST3 on Windows?
The SublimeRestart plugin doesn't work on Windows until this project-state-saving problem is solved. However, even if it did work perfectly, it would still only be a workaround for this really annoying non-refreshing-folders issue.
My workaround on Windows, FYI: After loading a project, when the folders don't refresh (don't load even the first time), I have ctrl+f10 bound to "File > Exit", and f10 configured into the shortcut that I launch Sublime Text with. So two reasonably-quick (although additional!) button presses.
Open Sublime Text.
Select Preferences from the top menu and click Key Bindings – User. Here you will see a JSON file that should contain an array of objects (initially the array is empty). Every object will represent a shortcut.
Add the following (new shortcut object) entry into the array (between the brackets):
{
"keys" : ["f5"],
"command" : "refresh_folder_list"
}
You should be able to refresh the folders with F5.
Try to Install this package:
https://packagecontrol.io/packages/SideBarEnhancements
Open the package folder. Main menu -> Preferences -> Package Control: -> Package Control: Install Package
Search the keyword: Side​Bar​Enhancements
Enjoy it
After you install this plugin, you will see the refresh button in your sidebar option:
I have added this myself the other day. I constantly work in an environment where files in the project are changing before I can see them.
Goto 'Preferences' menu -> 'Key Bindings' -> 'User' which will open a JSON file, add below code, save and close that file.
{ "keys": ["ctrl+f5"], "command": "refresh_folder_list" }
It will work like charm 100%. Thanks for asking this question.
This isn't going to be a very useful answer but it documents some early behaviour in Sublime Text that would solve your problem, assuming you need no later features from Sublime Text 2/3 (a big assumption indeed).
Sublime Text 1 had the handy feature in the folder context menu to "Refresh folder". This cause an immediate indexing of only the specified directory (and subdirectories) which was a boon when using networked drives over high-latency connections.
This was deprecated in Sublime Text 2.
Version 1 is available here or by direct download here. It's not clear that these will be available indefinitely though, so this isn't necessarily a long-term solution.

TFS - Files doesn't get check out for edit automatically when I edit

I am using VS2010 SP1 and TFS Version 10.0.40219.417
Now what happens is that I attempt to type in a non-checked out file, and well, nothing happens. VS does not check out the file. I have to manually check out the file for check in.
It's happening with me only. On my colleague system it's working fine. I have cross checked all the settings he has done in his VS2010. Please suggest what should I do ?
You probably covered this in "I have cross checked all the settings", but I'm going to ask anyway.
From How to: Disable Automatic Checkouts
In Visual Studio, on the Tools menu, click Options.
In the Options dialog box, click Source Control, and then click
Environment.
In the On Edit box, select a different option than Check out
automatically. The other available options are as follows:
Prompt for check out
Prompt for exclusive checkouts
Do nothing
Click OK.
Do you have "Do nothing" checked?
EDIT:
If the above setting is correct the next thing I would double check is if the solution is "Online". I have lost the connection without realizing it several times, it is worth an extra check.
To check:
Right-click on the solution name at the top of the Solution
Explorer and check if you have the "Go Online" option

VS2013 re-enable "Don't show this dialog again"

I was trying to update my service reference and I think there was a dialog that appeared warning about write/overwriting a read-only file. I check the "Don't show this dialog again" and now I want it to reappear. Where is the setting for this?
BTW: Everytime I right click and choose Update Service Reference, it does its think and a DING sound occurs but no updates took place. I would like to see the dialog again.
Try Tools > Import/Export Settings > Reset All Settings

How do I disable the reload dialog in Geany?

If a file open in geany is modified by another program, and geany is then brought to the front, then geany displays a modal dialog as follows.
The file 'stuff.txt' on the disk is more recent than
the current buffer.
Do you want to reload it?
This dialog is displayed, blocking any sort of work flow if files are continually regenerated by running command-line tools. How can this behavior be changed so that the dialog does not appear, and geany automatically reloads any such file?
Close Geany (else your changes will be overwritten), then open geany.conf in a different editor. Find disk_check_timeout and set it to 0. Save that, and reopen Geany.
Open geany.conf in a different editor and set the line reload_clean_doc_on_file_change=false to reload_clean_doc_on_file_change=true
The dialog cannot be disabled and automatic reloading is not supported (which could be bad anyway, depending on whether you've made changes to the document).
That being said, I had started working on a better method using GtkInfoBar like Gedit uses so that it wouldn't block you from working but still notify you of changes. Unfortunately I haven't had much time or interest to push it through into the master branch. If you feel like trying to use it (not recommended in current out-of-date/incomplete state) or continuing work on it, the branch is here.

Resources