nw.js, how to detect code changes and refresh the page - node.js

nw.js has SDK version, the version can be reload window and open devtool (console.log) through right mouse button + R and F12.
the reload is poor performance and inconvenient, it will close the window and reopen the window, is there any way to detect code changes automatically update page?
like node.js supervisor, or other development environment?

Related

Editor Opens main.dart on Save

Have a flutter web project being developed using Android Studio and something has changed recently which is now causing Android Studio to open up the file main.dart in the editor pane whenever a file is saved while the project is running in chrome.
Say the project is made up of two dart files: main.dart and example.dart and I have only the file example.dart open in the editor. I then click run 'main.dart which causes the application to launch in chrome browser. If I then make a change in example.dart while the app is running and save the file, the main.dart file is automatically opened in Android Studio's editor pane and gets the focus. This is forcing me to have to switch back to the example.dart file each time I want to make another change to it.
Not sure if it is Android Studio doing this or flutter itself as part of its hot reload functionality. Or maybe something I clicked on by mistake making it do this?
Did a flutter upgrade and the issue has now gone away so maybe the problem was somewhere in flutter web's Hot Reload functionality.

How to change app icons & UI in flutter using flutter Inspector?

I brought an app source code from (CodeCanyon) and i want to change the side navigation drawer icon from the given one to the default hamburger icon or something.
They have given me the docs of Flutter page to change it using Flutter Inspector but i don't know how to do it.
Here is the link they send me...
https://flutter.dev/docs/development/tools/devtools/inspector
Help me out...
From Android Studio, run the application in an Emulator or real device.
In the debug tab of Android Studio the 'Open DevTools' button (its icon is the Dart logo) next to the Hot Reload and Hot Restart buttons. This will launch a Dart DevTools tab.
After the new browser tab opens, click the "Try DevTools beta" button in the top right of the screen. This will take you to a new beta version of DevTools.
From there you will see what the linked page is talking about, but you must be on the latest version of Flutter.
On 25th june flutter has declared the stable dev tool, in that if you want to change in ui then,you just have to open dev tool with your connected device and in Flutter inspector enable the select widget mode. and in layout explorer you can changes the ui design properties. But remember one thing you can only changes in the row, column and container properties.

Flutter Hot Reload in Android Studio

I firstly wondered how to perform a hot reload in Flutter with Android Studio. Since I am already so used to the auto-save of Android Studio I did not even consider CTRL + S for the hot reload.
I then assigned the Flutter Hot Reload in the Keymap and this worked really well. But now I just realised that CTRL + S does also perform the hot reload. I looked the shortcut up in the Keymap and discovered that CTRL + S is mapped to Save All.
Now I am wondering what does Save All even do and does it do any extra compared to my assigned Flutter Hot Reload key combination?
I do not get the reason for Save All when Android Studio already saves everything automatically.
ctrl+s is to save and when "Perform hot reload on save" is enabled also "hot reload"
Conclusion
It really does matter. Apparrently the Flutter plugin simply reacts to a Save All call by executing Apply Changes, which will always call Flutter Hot Reload.
An interesting observation I made is that Flutter Hot Reload will not (as of writing) hot reload the application when there was no change in code, but Save All will and Apply Changes as well, which is why I wrote that Save All calls Apply Changes.
Write flutter run into the terminal present at below in android studio.
Once the app runs into your device or emulator press r into the terminal ->This will hot reload your app [for eg:- make some minor changes into your app after executing the flutter run then press r you can notice HOT RELOAD FUNCTIONALITY
In my scenario I was writing the code from scratch and not following the coding std.
Until then it was problem in Hot reload when I start working on
void main() => runApp(new HelloFlutterApp());

Android Studio: refresh preview on picture change

I'm using Android Studio 1.0.2 and Gimp as external editor for the images.
When I want to modify an image, I select it, click on "Jump to external editor", apply changes, save it, go back to Android Studio and... close/open project to refresh the changes.
Is there a shortcut for this ? I cannot find any "refresh preview".
Even if I recompile, start the app, close/reopen the preview, I cannot see the changes on the preview (only on the execute app).
Well, it's really easy, indeed... didn't notice the button.
In the preview panel, upper right corner (on the right of the + and - buttons), there's a refresh button.

Eclipse Window Activates (and moves window to active linux workspace) when Debugger Breakpoint Hit

When running and debugging server side code with Eclipse, and you activate a breakpoint being hit by visiting a url, posting data, etc. Eclipse window will automatically activate over top of your current window.
Not only that, but if your focus is in another workspace, Eclipse gets moved to that workspace as well.
Preferences
Run / Debug
Uncheck Activate workbench when a breakpoint is hit

Resources