cancel
Showing results for 
Search instead for 
Did you mean: 

Code Editor: Search/Find and Replace

We NEED the ability to be able to search text within a code block.  Currently there is no way to do this.

 

My workaround so far (which is a MAJOR pain and not that useable) is to select all, paste into either MS Code or Notepad++, and then search there.

There should also be the ability to do a search/replace (selectively ie: with Find Next, or all at once) just like other MS products.

In addition, being able to search (and replace) across ALL code blocks (a separate option) and ALL screens should also be possible (ie: find all instances where a variable is used for instance).  

 

 

Status: Under Review

Updating status and adding @GregLi

Comments
Level: Powered On

I should be able to search for all properties named X, and update the values of all instances of X to the formula or text Y.  Right now I am trying to implement color palettes that refer to centralised theme variables and having to go into each control (particularly the form ones) is a major pain in the arse.

PowerApps Staff

Hello All - this is still part of our backlog, but due to other priorities it has not yet been planned to be worked on. @GregLi is tracking this work along with other improvements to our language experience. One of our firsts steps here is an update to our formula bar, this will be releasing shortly and will lay the foundation for us to add global search and find and replace in the future.

Level 10

Three years overdue.  As basic to PowerApps as brakes to a car.

Level: Powered On

I agree. Needs to be implemented.

Some of you are saying you are copying code to NotePad. How are you doing that? I cannot find a place in PowerApps to get all of my code at once to paste somewhere else to do a search...

TML
Level 8

@EdHansberry 

There may be a better way, but if there is I have not seen anyone post it.  Basically I only do this as a last resort.  

  • Export Package
  • Open and extract .MSAPP file to a folder
  • Rename MSAPP to ZIP
  • Open and extract Entities.JSON
  • Copy and Past contents of Entities to this online conversion tool:
    https://codebeautify.org/jsontoxml
  • Convert to XML by clicking the "JSON to XML" button
  • Save the XML to a file locally
  • Edit with notepad++ and then you can paste this directly into the PowerApps app through the normal interface

I hope that helps and if someone else has a better way, please share!

 

Level: Powered On

Wow @TML - that is B.R.U.T.A.L. But, it did help me find the obscure property I had messed up that was creating a useless collection. I couldn't figure out where it was coming from.

 

There must be a better way.... 😬