I want to rotate landscape/portrait android emulator.
I found that I should Do one of this options:
1-Pressing numpad7 as the Num Lock is Off
2-Pressing Ctrl and F11
3-Pressing Ctrl and F12
Here is the emulator when I start it:
Here is the emulator when I start it
I pressed numpad7:No change!
I pressed Ctrl and F11:It goes to multi-touch mode,I want just rotating!
Here is when I press Ctrl and F11 or Ctrl and F12:
Here is when I press Ctrl and F11 or Ctrl and F12
I checked the sensors availability.All were Ok:
acceleration: enabled.
magnetic-field: enabled.
orientation: enabled.
temperature: enabled. proximity: enabled. light: enabled.
pressure: enabled.
humidity: enabled.
I didn't find any good idea to solve my problem.So I'm Here on StackOverFlow.
What should I do?
Sorry for my bad English
Thanks.
I'm using Ctrl+Left and Ctrl+Right
If you need do it with Appium on Java, this comands work for me:
((AppiumDriver) driver)
.rotate(ScreenOrientation.LANDSCAPE);
((AppiumDriver) driver)
.rotate(ScreenOrientation.PORTRAIT);
Related
I know how to do it on Mac, Linux and Windows, but it doesn't work on Chromebook. You'd expect it to be alt-up/down like Win/Linux, but that is treated like home and end.
Anybody know the trick?
Alt + Up/Down and Ctrl + Alt + Up/Down are reserved by Chromebook. You could open File --> Preferences --> Keyboard Shorcuts in VS Code and change Move Line Up/Down settings to something else.
Chromebook keyboard shortcuts
Chromebook keyboard shortcuts image
There's a easy way.
Just open google-chrome and type chrome://flags in the URL bar,go to the Experiments page.
Search Deprecate Alt based six-pack , then Enable this feature.
Restart.
Then you can use the default shortcut to move line up/down in VSCode.
I accidentally hit CTRL + = and my IDE is too much zoomed now. I tried the shortcut to zoom out as stated in the official vscode doc, (CTRL + -) but this is not working.
Some help would be appreciated.
Thanks,
On-Screen keyboard did not work for me. But managed to click the reset zoom setting under View>Appearance>Reset Zoom.
Zoom Out option was not working. However, Zoom was reset after clicking Reset Zoom option.
For that press ctrl+shift+p then type "resetZoom" without inverted commas
its work for me.
Found the solution by opening the on-screen keyboard, activating the numeric pad, and using its -. The - is not working on my laptop.
On my installation the keyboard shortcuts are working as stated in documentation (CTRL+-). For a workaround you can perhaps use the menu items under View > Zoom Out as also written in documentation in Chapter Zoom.
You can reset your zoom by ctrl+0.
By this command your zoom setting will reset
You can try CTRL + Numpad Subtract
It's simple I just found out, hold ctrl + -. This should zoom out and zoom in again just do what you did to zoom in. There are many ways to do it, this is just one of them.
I found I had installed the Visual Studio keybindings extension, which conflicted with VS Code. Removing that extension solved the problem for me.
Alternative you can check your keybindings and re-assign manually. Ctrl+K then Ctrl+S to open key bindings, where you can search or manually inspect and edit all.
use the ctrl+ or ctrl-which is next to your right not those + and - which is for volume on the top of your keyboard
Visual Studio Code Linux keyboard shortcuts &
Visual Studio Code Windows keyboard shortcuts
for zoom in/out:
In My case,
in: Ctrl + =
out: Ctrl + -
ctrl+shift+j then search zoom then click view : zoom out
step 1.open setting.json after u comand to zoom and looking eror
step 2.in setting json
search "window.zoomLevel"
delete "window.zoomLevel" or change value in "window.zoomLevel": 0
save setting.json
i hope this work to you
Zoom-in  : Left-click
Zoom-out : Left-click + Ctrl
You might have to open setting by going: ⌘,
Then search up zoom
click the first checkbox on.
now you can zoom by hitting ⌘ then scrolling
I used to be able to scroll in Visual Studio 2015 using some keyboard shortcuts in Windows doing something like ctrlshiftdown. It would effectively behave like a line by line viewport bump that did not modify where my cursor was inserted at. This is much like how scrolling with a mouse wheel does not move the cursor except its achieved from the keyboard.
I can't figure out how to do this on Visual Studio Code on a Mac.
On my Mac Ctrl+Page Up/Down works similar to mouse scroll. This doesn't affect the cursor position.
For me on mac what worked out was CMD + fn + Up/Down Arrow
fn + ctrl + up/down arrow did the trick for me on Mac for moving just one line at a time.
On Windows it is ctrl+Down Arrow. On Mac I believe it will be cmd key instead of ctrl
You can move one window height with fn+Up/Down Arrow
Learning how to fish 🎣
If you're not using default shortcuts - such as when you came from a different editor and "imported the keybindings" (see Keymap extensions), you may want to:
Go to the Keyboard Shortcuts editor at File > Preferences > Keyboard Shortcuts. (Code > Preferences > Keyboard Shortcuts on macOS)
Search for scrollLine
Check or change your current keybindings for scrollLineUp and scrollLineDown
Use ctrl + Up/Down Arrow to move. I have linux and the vim extention for vscode.
This command scrolls the view but not the cursor. So, keep that in mind.
you can push the shift and mouse roller
It's possible to browse the commands previously run in the console by pressing the up and down arrow keys. I want to clear this history. How can I do this?
You can now just right click on the console area and select "Clear console history".
If you want to clear the list of last typed commands, follow these steps:
(Step 1 and 2 are important, don't skip them!)
Undock the console (click on the icon in the bottom-left corner, ).
(if you don't see , but , then hold the mouse pressed for a few seconds to get the desired icon)
Press Ctrl + Shift + J to open the console for this console. (On OSX use Cmd + Option + i)
Go to the Resources tab, "Local Storage", chrome-devtools://devtools.
Right-click on the item with key "consoleHistory", and choose "Delete".
Done! You may close the new console, and then dock the previous one if wanted. The console history will be gone when you reload the console.
If you just want to clear the console log (not the commands), just press Ctrl + L.
You could also use Incognito mode if you don't want to keep the list of commands you're going to type.
I found a quick way to do this with cool keyboard shortcut:
Inside chrome console
Press Ctrl + Shift + P
You will see this awesome command palette opened:
type clear and you will find it :)
That's it!
If you don't want to have this console history (like myself), simply disable it from the devtool's configuration options (see on the image) below ...
This is very simple, just right click the console window and select Clear console history, then refresh the page.
Please note, refreshing/reloading that tab is required.
Simply enter clear() in the chrome console to remove all previous text there.
I ended up here looking for how to do the same thing in Firefox.
In case anyone else does the same, there is a clearHistory command in the Firefox console which will do just that.
https://developer.mozilla.org/en-US/docs/Tools/Web_Console/The_command_line_interpreter#Helper_commands
You can do that now easily with
cmd + shift + p
Type "clear"
Choose Clear console history
It can also be fixed by going to the developer tool settings and resetting to defaults.. (this will not reset 'Chrome', only developer tools options)
Open Chrome devtools
Go to settings (or press Windows ->F1 / OS X -> FN + F1)
Reset to the defaults
This way you will lose your developer settings, but for me the only thing that mattered was turning cache off again..
These shortcuts Clear Console.
⌘ K or
Ctrl L
This question is directly related to following existing question with different tag:
Keyboard shortcut to switch focus from web developer tools to page in Chrome
As stated in the title, is there anyway we can switch focus from web developer tools to page in Chrome on Mac OSX.
I looked up online, and at Chrome Dev. doc and help forum, nothing there but they pointed to SO for an answer. Here are some links regarding this question, I already found useless:
https://developers.google.com/chrome-developer-tools/docs/shortcuts
https://groups.google.com/forum/?fromgroups#!topic/google-chrome-developer-tools
Press F6 three times. To go back to DevTools press F6 one time.
F6 loop the focus in this order:
Page
DevTools(if DevTools is open)
Address bar
Bookmarks
You can move focus to the address bar with "Cmd + L". If you put javascript: in the address bar and hit the enter key, you can switch the focus to the page.
But javascript: is too long, isn't it? Then follow this.
Go to Chrome Settings page (Cmd + ,)
Click "Manage search engines..." in the Search section
Add a new search engine with
any name e.g. Back to page
any keyword e.g. j
URL - javascript:
Now you can move focus to the page only with j.
If you've un-docked dev-tools, on a Mac use Cmd+` (backtick) to move focus to active or next window.
This keyboard shortcut can be found and customized at:
System preferences -> Keyboard -> Shortcuts -> Select "Keyboard" category
I've had this exact same use case, and I'm surprised there isn't a simple shortcut for it. I've done some research, and it seems there are a few options:
Use command + option + J to toggle the console off. This will bring focus back to the web page. Then, hitting command + option + J again will open the console and direct the focus there once again. This is probably not the best way since there is a little bit of on each toggle.
Open Dev Tools in separate window. You can find this by clicking the three dots in the top right corner of the dev tools, and then you can find a button for undocking the tools into a separate window. Then, to toggle focus between the web page and console, you can hit command + `.
The answer above from #Sangdol is a great solution for switching focus from the console to the web page. This is probably the fastest and best way of doing this once it's set up. The only thing I'd like to add is how to switch focus back to the console. For this, you can hit command + shift + C twice (hitting it only one will successfully switch the focus, but will leave the browser in 'Inspect Element' mode). I've found that if the focus on the webpage is in a text box, you may have to hit Esc first before hitting command + shift + C.
Press ⌘+L to go to address bar.
Press Esc.
You have now switched focus from web developer tools to page.
To switch back press focus back press ⌘+⌥+C.
This works for docked but is best for undocked dev tools and multiple windows/tabs.
Â
With devtools focused hit ⌘+Shift+P
start typing in Debuggee
Hit enter when you see Focus debuggee, done!Â
Â
Then to go back to dev tools just hit ⌘+⌥+J to focus back on the tab you left them.
Â
It saves me some time everyday - my tabs can grow on me over the day... or days... weeks - pretty sure you've all been there - R&D!
New Update: In chrome Version 92.0.4515.131.
When DevTools is open and focus.
Press (⌘ Command+⌥ Option+↓ Down) Twice.
First time pressed - the focus will transfer to the URL.
The second time pressed - the focus will transfer to the page.
OS X 10.8.3 - Mountain Lion
customize "Move focus to next window in application" short cut, because the default key map is "Command + F1", which is binded to show "Shortcuts for Developer Tools" on chrome.
Update in chrome 107
You can now customize keyboard shortcuts for commands in DevTools.
Go to DevTools Settings > Shortcuts > set shortcut for "Focus debuggee".
Hitting ⌘+⌥+J twice will hide the dev tools and focus on your actual window. Do you want to focus on window without hiding dev tools?