JetBrains Rider:
💡 HEY
this #region
🐉🐉🐉🐉
🐉
🐉 [this region is empty]
🐉
#endregion is empty??
🐉🐉🐉🐉🐉🐉🐉🐉
yo ugonna write something or what ℹ️
🐉🐉🐉🐉🐉🐉🐉🐉🐉🐉🐉🐉🐉
JetBrains Rider:
💡 HEY
this #region
🐉🐉🐉🐉
🐉
🐉 [this region is empty]
🐉
#endregion is empty??
🐉🐉🐉🐉🐉🐉🐉🐉
yo ugonna write something or what ℹ️
🐉🐉🐉🐉🐉🐉🐉🐉🐉🐉🐉🐉🐉
Useful for things you don't edit but still would need to scroll past
#godot #gamedev #godottips
Useful for things you don't edit but still would need to scroll past
#godot #gamedev #godottips
In GDScript, you can use `#region` and `#endregion` to "group"/collapse pieces of your code.
After learning this (which I first saw in GameMaker), I can't live without it anymore.
In GDScript, you can use `#region` and `#endregion` to "group"/collapse pieces of your code.
After learning this (which I first saw in GameMaker), I can't live without it anymore.
#godot #godotengine #tipthursday #gamedev
#godot #godotengine #tipthursday #gamedev
Pro tip: the `#endregion` tag does not need to be qualified, but I find it helpful to include the region name, like `#endregion Demo`.
I do the same thing when ending long or nested if/switch/try/etc blocks.
Pro tip: the `#endregion` tag does not need to be qualified, but I find it helpful to include the region name, like `#endregion Demo`.
I do the same thing when ending long or nested if/switch/try/etc blocks.
Then you will enjoy the experimental `resolveNewUrlToAsset` option that is available in @rolldown.rs.
All you need to do is to activate it, and all `new URL('./path/to/file', import.meta.url)` calls will be updated.
Then you will enjoy the experimental `resolveNewUrlToAsset` option that is available in @rolldown.rs.
All you need to do is to activate it, and all `new URL('./path/to/file', import.meta.url)` calls will be updated.
dev tip: Si deseas agrupar secciones de código de Javascript en Visual Studio Code como se hace en Visual Studio entonces usa las directivas // #region y // #endregion
dev tip: Si deseas agrupar secciones de código de Javascript en Visual Studio Code como se hace en Visual Studio entonces usa las directivas // #region y // #endregion
#region / #endregion could stop being one of the lazy coder's best-kept secrets if VS Code's default Outline panel supported it
#region / #endregion could stop being one of the lazy coder's best-kept secrets if VS Code's default Outline panel supported it
/**
* Internal field holding data used by the receiver thread.
*/
// B I G __ A L L O C A T I O N:
private byte[] byteData;
// endregion
/**
* Starts the thread and listens for events.
*/
private ReceiverThread() {
this.byteData = new byte[ReceiverThread.PACKET_MAX_SIZE];
this.thread = new […]
/**
* Internal field holding data used by the receiver thread.
*/
// B I G __ A L L O C A T I O N:
private byte[] byteData;
// endregion
/**
* Starts the thread and listens for events.
*/
private ReceiverThread() {
this.byteData = new byte[ReceiverThread.PACKET_MAX_SIZE];
this.thread = new […]
So about 10,000
//#endregion
So about 10,000
//#endregion
2:
3: #region setup
840: #endregion
841:
842: #region punchline
1030: #endregion
1031:
1032: return laughs;
2:
3: #region setup
840: #endregion
841:
842: #region punchline
1030: #endregion
1031:
1032: return laughs;
tl;dr try making a VS code snippet to surround a selected region and automatically add `#region` and `#endregion` around it (BONUS with the same label).
tl;dr try making a VS code snippet to surround a selected region and automatically add `#region` and `#endregion` around it (BONUS with the same label).