# Move window one space = hates VS Code

**URL:** <https://community.folivora.ai/t/move-window-one-space-hates-vs-code/34337>\
**Category:** Bugs or Unexpected Behavior\
**Tags:** window-move\
**Created:** [November 18, 2023, 1:39am UTC](https://community.folivora.ai/t/move-window-one-space-hates-vs-code/34337 "2023-11-18T01:39:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Welch](https://community.folivora.ai/user_avatar/community.folivora.ai/david_welch/32/28846_2.png) [@David\_Welch](https://community.folivora.ai/u/David_Welch)\
**Post date:** [November 18, 2023, 1:39am UTC](https://community.folivora.ai/t/move-window-one-space-hates-vs-code/34337/1 "2023-11-18T01:39:06Z")

</div>

**Describe the bug**

Since updating to Ventura (straight to 13.5 from 14.x) I've noticed the "move window one space" doesn't work on VS Code. It works on other apps just fine, and even moves ME to the other space, but VS Code just stands there looking dumb 🙂

Not sure what could cause it, but it works with every other app.

* * *

**Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):**  
Keyboard

* * *

**Screenshots**  
[Example](https://youtu.be/1Z1tJmZ3ZM0)

* * *

**Device information:**

- Type of Mac: M2 16" MBP
- macOS version: Ventura 13.5
- BetterTouchTool version: 4.322

* * *

**Additional information (e.g. crash logs, related issues, etc.):**

I looked over other issues / tried to flex my Google Fu, but I haven't found any other posts about VS Code specifically. I also have verified it doesn't happen with other Electron apps 😕

\*\* VS Code Details \*\*

Version: 1.84.2  
Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e  
Date: 2023-11-09T10:52:57.054Z  
Electron: 25.9.2  
ElectronBuildId: 24603566  
Chromium: 114.0.5735.289  
Node.js: 18.15.0  
V8: 11.4.183.29-electron.0  
OS: Darwin arm64 22.6.0

---

<div class="post-metadata">

**Author:** ![David\_Welch](https://community.folivora.ai/user_avatar/community.folivora.ai/david_welch/32/28846_2.png) [@David\_Welch](https://community.folivora.ai/u/David_Welch)\
**Post date:** [December 18, 2023, 3:04pm UTC](https://community.folivora.ai/t/move-window-one-space-hates-vs-code/34337/2 "2023-12-18T15:04:16Z")

</div>

Is there a way to bump this thread? I still can't move VSCode windows, which is the major value of BTT for me.

FWIW I see this on IntelliJ as well.

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [December 18, 2023, 3:17pm UTC](https://community.folivora.ai/t/move-window-one-space-hates-vs-code/34337/3 "2023-12-18T15:17:44Z")

</div>

I will add a workaround for VSCode soon. The reason it is happening is actually a weird bug in VSCode, it doesn't allow dragging the window near the window buttons:

![image](https://community.folivora.ai/uploads/default/original/3X/1/f/1f23bf13b995a5dfc37206c57963c221db40615d.png)

BTT by default moves the cursor to a fixed position near the window buttons to initiate a special drag that moves the window to another space.

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [December 18, 2023, 3:26pm UTC](https://community.folivora.ai/t/move-window-one-space-hates-vs-code/34337/4 "2023-12-18T15:26:39Z")

</div>

BTT 4.357 alpha (uploading now) should work with VSCode

---

<div class="post-metadata">

**Author:** ![David\_Welch](https://community.folivora.ai/user_avatar/community.folivora.ai/david_welch/32/28846_2.png) [@David\_Welch](https://community.folivora.ai/u/David_Welch)\
**Post date:** [December 19, 2023, 12:06am UTC](https://community.folivora.ai/t/move-window-one-space-hates-vs-code/34337/5 "2023-12-19T00:06:42Z")

</div>

Thanks @Andreas_Hegenberg! And sorry to be noisy 😅

VS Code fix confirmed. It looks like it's also happening on IntelliJ as well still.

[![](https://community.folivora.ai/uploads/default/original/3X/4/7/4772b3e25402c9ebd2291bedca4ae6183a978b30.jpeg "BTT alpha. VSCode move spaces fixed; IntelliJ still broken") ](https://www.youtube.com/watch?v=qNULfeJ2yuQ)

I don't run tons of windows for IJ, but I'd imagine most of JetBrains products would be in the same boat. Sorry I didn't catch before or I would have included in the OG post.

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [December 19, 2023, 11:21pm UTC](https://community.folivora.ai/t/move-window-one-space-hates-vs-code/34337/6 "2023-12-19T23:21:05Z")

</div>

I only have Android Studio right now, which seems to work with the default values.

However I added a (ugly) way to modify the values:

defaults write com.hegenberg.BetterTouchTool space-switch-xy- **lowerCasebundleIdentifierOfApp**"{x, y}"

This needs to be executed while BTT is quit. For intelliJ maybe try the same values I use for VSCode:  
`defaults write com.hegenberg.BetterTouchTool space-switch-xy-com.jetbrains.intellij "{130, 5}"`

Depending on the IntelliJ version the bundle identifier might be different.

This sets the dragging anchor from the top left of the window.

---

<div class="post-metadata">

**Author:** ![SvenTheMediocre](https://community.folivora.ai/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@SvenTheMediocre](https://community.folivora.ai/u/SvenTheMediocre)\
**Post date:** [March 21, 2024, 6:47pm UTC](https://community.folivora.ai/t/move-window-one-space-hates-vs-code/34337/7 "2024-03-21T18:47:25Z")

</div>

> [@Andreas\_Hegenberg](#):
>
> defaults write com.hegenberg.BetterTouchTool space-switch-xy-com.jetbrains.intellij "{130, 5}"

I tried this to fix PyCharm and other JetBrains products with the defaults write method you proposed with no success unfortunately. I did find a somewhat manual workaround I mentioned here: [Issue with "Move Window One Space/Desktop Left/Right"](https://community.folivora.ai/t/issue-with-move-window-one-space-desktop-left-right/34009)

Could you take a look at that and see if there's a way to fix this for Jetbrains products please?
